AnsweredAssumed Answered

PositionDisplay is not auto panning map

Question asked by gibertoni2 on May 27, 2016
Latest reply on May 27, 2016 by LDanzinger-esristaff

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:






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'