I have a Map like so:
Map {
id: basemap
focus: true
positionDisplay {
showPosition: true
positionSource: PositionSource {
id: positionSrc
name: "MyPlugin"
updateInterval: 500 //ms
onPositionChanged: { console.log("current pos:", position.coordinate.latitude, position.coordinate.longitude); }
}
ArcGISLocalTiledLayer {
path: "./Topographic.tpk"
}
}
I created a PositionSource plugin and it updates fine, printing the new position at every 500ms. However the positionDisplay does not update its mapPoint and does not AutoPan
I have even modified the 'mode' property to every possible value:
AutoPanModeOff
AutoPanModeDefault
AutoPanModeNavigation
AutoPanModeCompass
What is missing? I expected it to zoom in to my location and follow it as latitude and longitude updates inside positionSrc
P.S.: If I print basemap.positionDisplay.mapPoint the result is 'null'