diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-02-14 18:20:15 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-17 13:02:53 +0000 |
commit | 2782765e20ba3bc6af92375574456fd54d4243f7 (patch) | |
tree | 9a70096fdddcc7d28224d6749dd0c7b0da5bcdbb /src/plugins/geoservices/osm/qgeotiledmaposm.h | |
parent | 05edc644337a33e3e72d993b8114efc755a4320a (diff) | |
download | qtlocation-2782765e20ba3bc6af92375574456fd54d4243f7.tar.gz |
Introduce map objects reference implementation
This patch introduces a reference implementation for
the QGeoMapObject subclasses in the locationlabs module.
If this module is built, all current plugins, with
the exception of mapboxgl, will also be able to render
map objects.
The current reference implementation of map objects
is not optimized, but it can be useful for both testing
and feature parity (so that switching between plugins
will give the same result).
Change-Id: I830ebb3813f219e42c085f450952a2b4327361cd
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeotiledmaposm.h')
-rw-r--r-- | src/plugins/geoservices/osm/qgeotiledmaposm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeotiledmaposm.h b/src/plugins/geoservices/osm/qgeotiledmaposm.h index b2af5d89..cc349793 100644 --- a/src/plugins/geoservices/osm/qgeotiledmaposm.h +++ b/src/plugins/geoservices/osm/qgeotiledmaposm.h @@ -43,11 +43,17 @@ #include "qgeotileproviderosm.h" #include <QtLocation/private/qgeotiledmap_p.h> +#ifdef LOCATIONLABS +#include <QtLocation/private/qgeotiledmaplabs_p.h> +typedef QGeoTiledMapLabs Map; +#else +typedef QGeoTiledMap Map; +#endif QT_BEGIN_NAMESPACE class QGeoTiledMappingManagerEngineOsm; -class QGeoTiledMapOsm: public QGeoTiledMap +class QGeoTiledMapOsm: public Map { Q_OBJECT |