summaryrefslogtreecommitdiff
path: root/src/location/doc/src/plugins/osm.qdoc
diff options
context:
space:
mode:
authorWolfgang Bremer <wolfgang@w-bremer.de>2015-04-20 05:09:09 +0200
committerWolfgang Bremer <wolfgang.bremer@pelagicore.com>2015-05-08 16:21:33 +0000
commit3f697f6d73f0a7f10be90f48662f139a33d1781e (patch)
tree06c7c4066106aebe1ffe8a7fe47bb44656ccde25 /src/location/doc/src/plugins/osm.qdoc
parentcee1591ffce5ba923375144108075fffd3ea70a7 (diff)
downloadqtlocation-3f697f6d73f0a7f10be90f48662f139a33d1781e.tar.gz
Allow custom URLs for OSM tiles
This enables the usage of various mapping services which use the OSM API for tile distribution. One only needs to set the urlprefix parameter to a correct url and the activeMapType to the "Custom URL Map". Task-number: QTBUG-32937 Change-Id: Ib24da19dc598ccc288047ce2651e6c1792ae2054 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Diffstat (limited to 'src/location/doc/src/plugins/osm.qdoc')
-rw-r--r--src/location/doc/src/plugins/osm.qdoc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/location/doc/src/plugins/osm.qdoc b/src/location/doc/src/plugins/osm.qdoc
index 0d454fbe..2d3a7a68 100644
--- a/src/location/doc/src/plugins/osm.qdoc
+++ b/src/location/doc/src/plugins/osm.qdoc
@@ -55,5 +55,31 @@ The following table lists optional parameters that can be passed to the Open Str
\li useragent
\li User agent string set when making network requests. This parameter should be set to a
value that uniquely identifies the application.
+\row
+ \li mapping.host
+ \li Url string set when making network requests to the tile server. This parameter should be set to a
+ valid server url with the correct osm api and the \l{Map::activeMapType} to the corresponding \l{MapType}.CustomMap.
+ The CustomMap will only be available if this parameter is set.
+ \note Setting the mapping.host parameter to a new server renders the map tile cache useless for the old custommap style.
+\row
+ \li mapping.copyright
+ \li Custom copryright string is used when setting the \l{Map::activeMapType} to \l{MapType}.CustomMap via urlprefix parameter.
+ This copyright will only be used when using the CustomMap from above. If empty no copyright will be displayed for the custom map.
\endtable
+
+\section1 Parameter Usage Example
+
+The following example shows how to create an OSM plugin instance with
+parameters supplied for an useragent, and if necessary, a custom server url plus the corresponding copyright information for the tile provider.
+
+\section2 QML
+
+\code
+Plugin {
+ name: "osm"
+ PluginParameter { name: "useragent"; value: "My great Qt OSM application" }
+ PluginParameter { name: "mapping.host"; value: "http://osm.tile.server.address/" }
+ PluginParameter { name: "mapping.copyright"; value: "All mine" }
+}
+\endcode
*/