iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
615 stars 210 forks source link

Location coordinates for any place clicked in viewer #1792

Closed ashish-srivastava-dev closed 3 years ago

ashish-srivastava-dev commented 3 years ago

How can I get location coordinates for any location clicked in viewer? I want the location in JavaScript code.


⚠ Do not edit this section. It is required for imodeljs.github.io ➟ GitHub issue linking

pmconne commented 3 years ago

Have a look at the MeasureLocationTool.

pmconne commented 3 years ago

Closing because this is not an issue. Please use the discussions page for asking questions.

ashish-srivastava-dev commented 3 years ago

Hi Paul,

Can you point me to some code samples which use this tool to capture location coordinates?

Thanks.

Best Regards, Ashish Srivastava

pmconne commented 3 years ago

No, I can't. An app installs the tool, the user clicks on locations, and the tool reports their coordinates. Look at the implementation of the tool linked above to see how it works.