autoPan functionality for Qt?

4002
2
Jump to solution
03-26-2015 08:56 AM
ChuckBenton
Occasional Contributor

I have an app developed under Qt Quick/QML for iOS and Android.  I'm showing GPS position just fine, but want to be able to autoPan and zoom based on GPS position.  I've searched high and low for something along the lines of the Android LocationDisplayManager and/or setting autoPan mode to Navigation but am coming up with nothing. 

This seems an obvious capability to include... can anyone point me to a QML example?  Thanks!!

Chuck

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Hey Chuck,

Take a look at the "Position display live" sample under the Position category of the QML Sample App. Notice that the Display Mode combo box displays a few different options for you. There is autopan and navigation included with the QML API. You can set it with the AutoPanMode Enum - http://developersdev.arcgis.com/qt/qml/api-reference/class_enums.html#a02718eb9504a075d207067d7d567c...

For example, "mode: Enums.AutoPanModeNavigation."

Thanks,

Luke

View solution in original post

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

Hey Chuck,

Take a look at the "Position display live" sample under the Position category of the QML Sample App. Notice that the Display Mode combo box displays a few different options for you. There is autopan and navigation included with the QML API. You can set it with the AutoPanMode Enum - http://developersdev.arcgis.com/qt/qml/api-reference/class_enums.html#a02718eb9504a075d207067d7d567c...

For example, "mode: Enums.AutoPanModeNavigation."

Thanks,

Luke

0 Kudos
ChuckBenton
Occasional Contributor

Perfect, Thanks!  (wicked fast response also! thx again!!)

0 Kudos