AnsweredAssumed Answered

Having Issue on Getting Lat & Long of Multi Point Added to The Map

Question asked by behClevest on Jan 17, 2017
Latest reply on Jan 18, 2017 by rscheitlin

Customizing this Esri Sample I am able to get  Lat and Long of new added Point to the Map at

 

function addToMap(evt) {
var symbol;
toolbar.deactivate();
map.showZoomSlider();
switch (evt.geometry.type) {
case "point":
symbol = new SimpleMarkerSymbol();
var mp = webMercatorUtils.webMercatorToGeographic(evt.geometry);
var lat = mp.x;
var long = mp.y;
console.log(lat, long);
var point = new Point(lat, long);
var graphic = new Graphic(point, symbol);
pointGraphicLayer.add(graphic);
break;

Now I need to do the same process for Multipoint class as 

 

case "multipoint":
symbol = new SimpleMarkerSymbol();
var mp = webMercatorUtils.webMercatorToGeographic(evt.geometry);
console.log(mp.points);

 

but I am getting this error

can you please let me know how I can get a list of lat and long of multi point?

Thanks

 

Update

I also tried this

 

case "multipoint":
symbol = new SimpleMarkerSymbol();
console.log(this.points);
break;

 but the console.log() is not printing out any thing however I am not getting error neither

Outcomes