AnsweredAssumed Answered

add graphic with wrong extent

Question asked by cadrin on Dec 10, 2012
Latest reply on Dec 10, 2012 by jeff.pace
Hi all,

recently I had a problem with the findTask, but I digged up more the problem and found that my graphic were added, but with the wrong extent.

Do you know how to solve the problem?

This is my original extent (situated in Quebec, Canada) :

var initialExtent = new esri.geometry.Extent({ 'xmin': -8034661, 'ymin': 5652797, 'xmax': -8004182, 'ymax': 5670187, 'spatialReference': new esri.SpatialReference({ wkid: 102100 }) });

But, when the event add(graphic) is fired, the graphic are added in the middle of the mediterannean sea (?!?!?!???). How could this happen? I've never seen that bug.

var graphic = new esri.Graphic(result.feature.geometry, sym); //create graphic with geometry (result.feature.geometry) and symbol (sym)         console.dir(map);         map._layers.search_result.add(graphic); //add graphic to graphics layer created above

Thank you.