Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 38
Registered: ‎04-14-2016

Get coordinates by clicking on the map

[ Edited ]

Hi everyone,

 

Does anyone know how I can get the coordinates by clicking on the map. It's about geospatial portak SDK.

Do I use $GP.map.info or something else?

Highlighted
Technical Evangelist
Posts: 1,236
Registered: ‎09-11-2015

Re: Get coordinates by clicking on the map

Hi Mladen,

 

Similar question was solved here by other user:

https://community.hexagongeospatial.com/t5/Developer-Discussions/Capture-Map-Click-Event-Geospatial-...

 

I believe you can also use drawing functions such as $GP.map.draw.rectangle(); and get clicked point coordinates as well.

 

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial