0

I am a newbie with ARCGIS and Javascript but trying hard

ON that article on this page at the end UPDATE Here is the same code with the addition to convert the geometry from WebMercator (wkid 102100 or 3857) to geographics (wkid 4326)

Is there someone who put the information about the polygon in a textarea field so I can put it into the database

I really like that example fit me but missing instead of console to put just the points of a polygon in the field

console.log(webMercatorUtils.webMercatorToGeographic(event.graphic.geometry).toJSON()); 
document.getElementById('message').innerHTML = (webMercatorUtils.webMercatorToGeographic(event.graphic.geometry).toJSON()); 

This is not working it says

Object Object

Many thanks to everyone for your support It is nice and appreciated

Mike

console.log(webMercatorUtils.webMercatorToGeographic(event.graphic.geometry).toJSON()); 
document.getElementById('message').innerHTML = (webMercatorUtils.webMercatorToGeographic(event.graphic.geometry).toJSON()); 

Not working says [Object][Object]

Lalaluka
  • 910
  • 1
  • 11
  • 16
Mike Savoy
  • 19
  • 2

0 Answers0