xirias

Graphics located wrong with Firefox 3.6

Discussion created by xirias on Jul 19, 2010
Latest reply on Jul 29, 2010 by mapthis
I have some very simple code to place markers using lat-longs I'm reading from an external file.  The markers plot okay using MSIE 8, but in Firefox 3.6 (Mac and PC alike), they are way, way off initially (thousands of feet), then as the map is panned and zoomed they move even more. 

Unfortunately this is highly repeatable, and plagues version 1.6 and 2.0 of the API alike.  Any workaround??

Code excerpt:

var loc = esri.geometry.geographicToWebMercator(new esri.geometry.Point(longitude, latitude));

var attributes={latitude:latitude, longitude:longitude, description:description};
                   
var point = new esri.Graphic(loc, symbol, attributes, template);

cfg.layer.add(point);

Outcomes