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

  1. Fork QuickMapServices repo

  2. Clone it with:

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

  1. Go to folder where all the data_sources are stored

cd src/data_sources

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

cp -R osm_mapnik mapquest_osm cd ../mapquest_osm

  1. 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
  1. Copy results to your live QGIS install for testing:

cp mapquest_osm ~/.qgis2/python/plugins/quick_map_services/

  1. If all is fine - commit new datasource for review!

If all is fine, we will add it to the plugin itself.

Clone this wiki locally