hi, i don't understand what's going on in my test script. i expect case 1 and case 2 to show up in the same location: they dont.<br>
<br>
map = new kaMap('viewport');<br>
<br>
oCanvas = map.createDrawingCanvas(5);<br>
var o1 = document.createElement('img');<br>
var o2 = document.createElement('img');<br>
o1.src = 'images/up.jpg' ;<br>
o2.src = 'images/up.jpg' ;<br>
<br>
<br>
// case 1: convert pixel (0,0 to geo and addObjectGeo):<br>
var xg = map.pixToGeo(0,0,true);<br>
map.addObjectGeo( oCanvas, xg[0], xg[1], o1 );<br>
<br>
// case 2: just addObject Pix<br>
var xp = [0,0];<br>
map.addObjectPix( oCanvas, xp[0], xp[1], o2 );<br>
<br>
<br>
i have tried pixToGeo with and without the 3rd arg. <br>
<br>
what am i missing? i'm using the default omap example mapfile and the CVS version of kamap. <br>
<br>
maybe i just need a primer on how these relate??<br>
<br>
thanks for any suggestions,<br>
-brent<br>
<br>
<br>
<br>