how to display device location in QT sceneview

1216
2
Jump to solution
05-16-2017 08:32 AM
tarekhajar
New Contributor

Im working with Arcgis runtime sdk for qt. 

I have added a scene view to display a 3D map.

My question is how to display the device current location.#QT qtcreator #arcgis runtime sdk for qt

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

The LocationDisplay is only supported on the MapView currently. As a workaround, what you could do in the meantime is use QML's PositionSource object to get location updates, and add a GraphicsOverlays with a Marker Symbol graphic in it. Then, update the Graphic's geometry based on the updated position from PositionSource.

View solution in original post

2 Replies
LucasDanzinger
Esri Frequent Contributor

The LocationDisplay is only supported on the MapView currently. As a workaround, what you could do in the meantime is use QML's PositionSource object to get location updates, and add a GraphicsOverlays with a Marker Symbol graphic in it. Then, update the Graphic's geometry based on the updated position from PositionSource.

tarekhajar
New Contributor

Thank you Lucas

0 Kudos