Esri / arcgis-maps-sdk-toolkit-qt

ArcGIS Maps SDK for Qt Toolkit
Apache License 2.0
132 stars 61 forks source link

Ensure Overview Map updates at initialisation to be consistent with geoView #460

Closed AndrewBladon closed 3 years ago

AndrewBladon commented 3 years ago

Currently, the Overview Map toolkit component does not always display the desired view when an application starts. At initialisation, the Overview Map often displays a world view, while the geoView (MapView or SceneView) displays a local viewpoint. In order to get the Overview Map to show the desired overview, the user needs to interact with the geoView to force the Overview Map to update.

This PR adds single-shot connections to both the C++ and QML Overview Map Controller's. The connections respond to the onDrawStatusChanged signal and, if DrawStatus = completed, the viewpoint in the Overview Map will be updated. Once this has finished, the connection will be disconnected to prevent this happening multiple times.

@anmacdonald and @mrwillyees, please could you review these changes?