Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
-
None
Description
Qt Location's Map component is used in conjunction with a MapPlugin. These plugins seem engineered to facilitate a whole large bunch of mapping related services from tiles to geocoding and routing. Most of these services are expensive and/or have difficult terms of service, which leads them to be rarely used. Tiles, however, are an exception. There is especially a large collection of differently themed OpenStreetMap tiles (e.g. opencyclemap.org, openseamap.org, hikebikemap.de) available free of charge and by reasonable terms. Also, it is very common for applications to want to just display points or lines on a map without using any geocoding, routing, etc. services.
If I understand correctly, Qt Location currently allows one to create custom map plugins in C++ by subclassing and implementing a bunch of interfaces. This is not very convenient, especially for those not using C++ at all. I propose adding a simple OSM-tilescheme-compatible [1] map plugin that accepts a tilesource as a plugin parameter. Then, in QML, one could simply state
Map { plugin: MapPlugin { name: "the-custom-osm-compatible-plugin" parameters: [ PluginParameter { name: "tilesource"; value: "http://a.tile.thunderforest.com/cycle/$Z/$X/$Y.png"; } ] } }
Attachments
Issue Links
- duplicates
-
QTBUG-32937 Consider adding tile server url(s) as parameter for OSM mapping plugin
-
- Closed
-