Position of circle geometry

779
3
Jump to solution
12-16-2017 11:31 AM
EvonFranklin
New Contributor III

I can get the mapPoint or screenPoint of a circle geometry, however after moving or panning the map i want to get the new screen coordinates in relation to the circle geometry and its screen position. Is this possible?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Evon,

   If I am understanding your question. Yes you can get the screen coordinates of any map point using the maps toScreen method:

https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#toscreen 

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Evon,

   If I am understanding your question. Yes you can get the screen coordinates of any map point using the maps toScreen method:

https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#toscreen 

EvonFranklin
New Contributor III

I will look over that link thanks Robert. I currently have a Circle geometry added to the map when you click which is suppose to highlight some Points, but when I check the coordinates for the circle they stay the same even after panning the map, I want to get the new coordinates as it relates to position on the screen after you pan, so it might be at X:100 , Y: 150 on initial click then when you pan the map the the left the screen position of 'X' should change right? Or will it stay the same X,Y as before?

0 Kudos
EvonFranklin
New Contributor III

I was trying to use the Map object instead of MapView at one point after following your link but that does the trick thanks!