AnsweredAssumed Answered


Question asked by milerdoug on Nov 22, 2014

I wrote the following code and everything run ok!

function manualPickAddress(evt){;

var point = new Point(evt.mapPoint.x,evt.mapPoint.y,new SpatialReference({ wkid:2100 }));

window.alert(point.x+ ' ' + point.y);

var symbol = new SimpleMarkerSymbol().setStyle(SimpleMarkerSymbol.STYLE_SQUARE).setColor(new Color([255,0,0,0.5]));

var graphic = new Graphic(point,symbol);

graphic.setAttributes( {"XCoord":evt.mapPoint.x,"YCoord":evt.mapPoint.y,"Name":'Information'} );;


map.infoWindow.setContent("Longtitude:" + evt.mapPoint.x+'<br />'+"Latitude:"+evt.mapPoint.y);;



The problem is that when I pick Athens Greece the long, lat, I take is not perfect or map constructor.

I want to make a map to inititalize and point to Athens Greece.


What should I do?


What values are evt.mapPoint.x and evt.mapPoint.y?


The event is click on the map.