Skip to content
Maxim Dubinin edited this page Jan 14, 2015 · 12 revisions

In this document, we will show step-by-step example on how to add a data_source

Fork QuickMapServices repo

Clone it with:

git clone https://github.com/nextgis/quickmapservices.git

Go to folder where all the data_sources are stored

cd quickmapservices/src/data_sources

Make copy of one of the existing data_sources, for example osm_mapnik

cp -R osm_mapnik mapquest_osm
cd ../mapquest_osm

Edit metadata.ini to add all necessary details, you can skip some of those:

[general]
id = mapquest_osm
type = TMS
is_contrib = False

[ui]
group = mapquest
alias = MapQuest OSM
icon = mapquest.svg

[license]
name = Community Edition License
link = http://developer.mapquest.com/web/info/terms-of-use
copyright_text =Tiles Courtesy of MapQuest, © OpenStreetMap contributors
copyright_link = http://www.mapquest.com/
terms_of_use = http://developer.mapquest.com/web/products/open/map#terms

[tms]
url = http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg
zmax = 19

Copy results to your live QGIS install for testing:

cp -R mapquest_osm ~/.qgis2/python/plugins/quick_map_services/data_sources

If all works fine - commit new datasource and make pull-request against our repo for review!

If everything is correct, we will add it to the next plugin build.

Clone this wiki locally