Perhaps it has something to do with the various style sheets and such that are being used. Guess I'll just need to overcome it via brute force but even doing this still results in a lot of drift when viewed on different scales.<br><br>S.D.<br><br><b><i>Paul Spencer &lt;pspencer@dmsolutions.ca&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> The problem is likely with e.clientX/Y.  I've started using:<br><br>     e = (e)?e:((event)?event:null);<br>     var x = e.pageX || (e.clientX +<br>         (document.documentElement.scrollLeft ||  <br>document.body.scrollLeft));<br>     var y = e.pageY || (e.clientY +<br>         (document.documentElement.scrollTop ||  <br>document.body.scrollTop));<br>     var a = this.adjustPixPosition( x,y );<br>     var p = this.kaMap.pixToGeo( a[0], a[1] );<br><br>and haven't run into any problems<br><br>Cheers<br><br>Paul<br><br>On 25-Aug-06, at 2:34 PM, Samuel
 Doyle wrote:<br><br>&gt; It's mapped to the adjustPixPosition in kaTool.<br>&gt;<br>&gt; S.D.<br>&gt;<br>&gt; Christopher Schmidt <crschmidt@crschmidt.net> wrote: On Fri, Aug  <br>&gt; 25, 2006 at 10:42:24AM -0700, Samuel Doyle wrote:<br>&gt; &gt; Has anyone else encountered this? Is this something I need to  <br>&gt; manually compensate for?<br>&gt; &gt;<br>&gt; &gt; Samuel Doyle wrote: Hi,<br>&gt; &gt;<br>&gt; &gt; I keep running into this problem and it behaves different on both  <br>&gt; Firefox and IE.<br>&gt; &gt;<br>&gt; &gt; I want to add an icon to the map based on where the user has  <br>&gt; clicked. I use the following procedure which I am hoping is correct  <br>&gt; since I have noticed it used before.<br>&gt; &gt;<br>&gt; &gt; incidentViewer.prototype.ondblclick = function(e)<br>&gt; &gt; {<br>&gt; &gt; e = (e)?e:((event)?event:null);<br>&gt; &gt;<br>&gt; &gt; var aPixPos = this.adjustPixPosition( e.clientX, e.clientY );<br>&gt; &gt; var geoCoo =
 this.kaMap.pixToGeo( aPixPos[0], aPixPos[1] );<br>&gt; &gt; this.gX = geoCoo[0];<br>&gt; &gt; this.gY = geoCoo[1];<br>&gt; &gt; // send to server here<br>&gt; &gt; ...<br>&gt; &gt;<br>&gt; &gt; myKaMap.addObjectGeo( opener.iconFeatures, this.gY, this.gX,  <br>&gt; incident.img );<br>&gt; &gt;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; The offset of the icon always ends up incorrect from what it  <br>&gt; should be. Is this the correct procedure?<br>&gt;<br>&gt; Whether this is correct or not would depend on what the code in<br>&gt; "this.adjustPixPosition" does.<br>&gt;<br>&gt; Regards,<br>&gt; -- <br>&gt; Christopher Schmidt<br>&gt; Web Developer<br>&gt;<br>&gt; _______________________________________________<br>&gt; ka-Map-users mailing list<br>&gt; ka-Map-users@lists.maptools.org<br>&gt; http://lists.maptools.org/mailman/listinfo/ka-map-users<br><br>+-----------------------------------------------------------------+<br>|Paul Spencer                          
 pspencer@dmsolutions.ca   |<br>+-----------------------------------------------------------------+<br>|Applications &amp; Software Development                              |<br>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|<br>+-----------------------------------------------------------------+<br><br><br><br><br></crschmidt@crschmidt.net></blockquote><br>