diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-01-17 18:16:41 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-01-26 14:45:37 +0000 |
commit | f586ea00feb414fb0776aa2bc6fbbb356ac61c32 (patch) | |
tree | 181045b22dbfd1fbb64c9ffb9cea2f87d218d9bf /src/plugins/geoservices/mapbox | |
parent | 05c4125cd65e34d64befeef4c4c2aba1f3b86665 (diff) | |
download | qtlocation-f586ea00feb414fb0776aa2bc6fbbb356ac61c32.tar.gz |
Add rotation/tilting support to QGeoTiledMapScene/QGeoCameraTiles
This patch adds rotation and tilting support to QGeoTiledMapScene
and QGeoCameraTiles.
It also adds the related capabilities to the geoservice plugins
mapping managers
QML Api is added in a separate patch
Change-Id: I3de1b52a9928c4856f6ee57ad39191acebe0f770
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapbox')
-rw-r--r-- | src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp index 5404eb30..4b62aece 100644 --- a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp +++ b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp @@ -50,6 +50,12 @@ QGeoTiledMappingManagerEngineMapbox::QGeoTiledMappingManagerEngineMapbox(const Q QGeoCameraCapabilities cameraCaps; cameraCaps.setMinimumZoomLevel(0.0); cameraCaps.setMaximumZoomLevel(19.0); + cameraCaps.setSupportsBearing(true); + cameraCaps.setSupportsTilting(true); + cameraCaps.setMinimumTilt(0); + cameraCaps.setMaximumTilt(80); + cameraCaps.setMinimumFieldOfView(20.0); + cameraCaps.setMaximumFieldOfView(120.0); setCameraCapabilities(cameraCaps); setTileSize(QSize(256, 256)); |