Pan and zoom pushbuttons on map in arcgis 100.6 qt cpp

836
1
Jump to solution
12-08-2020 07:25 AM
AbhijeetSatam
New Contributor III

I am using qt version 5.10.1 and arcgis 100.6 . My code is in cpp.

I want to add zoom and pan pushbuttons on my map. I am aware that mousecontrol and keyboard controls are available for navigation on map. However I want the same functionality on my map.

For eg. on clicking the <-- pushbutton my map the right pan action must be executed. Similarly on + pushbutton click map must zoom in. 

Is there any way to acheive this? 

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

You can use Viewpoints to programmatically move around the MapView. There are many different ways to go about it, several of which are showcased in this sample - https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Maps/Cha... 

View solution in original post

0 Kudos
1 Reply
LucasDanzinger
Esri Frequent Contributor

You can use Viewpoints to programmatically move around the MapView. There are many different ways to go about it, several of which are showcased in this sample - https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Maps/Cha... 

0 Kudos