Select to view content in your preferred language

How to create a point in map using lat and long values in qml

199
1
05-22-2024 07:03 AM
Labels (3)
bairareddy
New Contributor

I am working on creating points in geographical map using list of lat and long co-ordinates which are entered in table by user. Here i am not able to achieve it and so far i  have explored all around available options.

0 Kudos
1 Reply
GuillaumeBelz
Esri Contributor

Hello,

You can create points (and other ArcGIS objects) using `ArcGISRuntimeEnvironment.createObject`. See samples for code example: https://github.com/Esri/arcgis-maps-sdk-samples-qt/blob/main/ArcGISRuntimeSDKQt_QMLSamples/Geometry/...

Note that QML API is deprecated in 200.4 and will be removed in future: https://www.esri.com/arcgis-blog/products/sdk-qt/announcements/qml-api-deprecation-and-roadmap/. It's possible to create the points with C++ API and expose them to QML.

0 Kudos