rocker79

Graphic Layer

Discussion created by rocker79 on Mar 15, 2011
Latest reply on Mar 16, 2011 by hzhu
I'm Add Layer Graphic Layer on the MAP, but the graphic on the layer move when i pan around. I want Graphic Layer move match coordinate. i editing form code not work. can u help me

For example:
you can't just have

var NewGraphics
NewGraphics = new esri.layers.GraphicsLayer({});
map.addLayer(NewGraphics);

Instead you have to have

NewGraphics = new esri.layers.GraphicsLayer({});
dojo.connect(map, "onLoad", function() {
map.addLayer(NewGraphics);
});

Outcomes