# -*- coding: utf-8 -*-
"""
/***************************************************************************
qgis2leaf @ Social Planing Council of the City of Ottawa
A QGIS plugin
QGIS to Leaflet creation programm
-------------------
begin : 2014-04-29
copyright : (C) 2013 by Riccardo Klinger
email : riccardo.klinger@geolicious.com
***************************************************************************/
/***************************************************************************
INSTRUCTION ON FILE USAGE:
***************************************************************************/
"""
# To add a line to the layer list you might use this dictionary python variable.
# its first element is the basemap service name which will be displayed in the GUI
# The second entry marked with "META" is the metadata for the leaflet. pleasy
# respect copyrights and licenses
# After you've added a basemap service, the plugin needs to be reinstalled.
#
"""
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
def layerlist():
dictionary = [{
'OSM Standard':'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\
'META': '© OpenStreetMap contributors,CC-BY-SA'
},{
'OSM Black & White':'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png',\
'META': '© OpenStreetMap contributors,CC-BY-SA'
},{
'Stamen Toner':'http://a.tile.stamen.com/toner/{z}/{x}/{y}.png',\
'META': 'Map tiles by Stamen Design, CC BY 3.0 — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'OSM DE':'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png',\
'META': '© OpenStreetMap contributors,CC-BY-SA'
},{
'OSM HOT':'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',\
'META': '© OpenStreetMap contributors,CC-BY-SA, Tiles courtesy of Humanitarian OpenStreetMap Team'
},{
'OpenSeaMap':'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',\
'META': 'Map data: © OpenSeaMap contributors'
},{
'Thunderforest Cycle':'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',\
'META': '© OpenCycleMap, © OpenStreetMap contributors,CC-BY-SA'
},{
'Thunderforest Transport':'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png',\
'META': '© OpenCycleMap, © OpenStreetMap contributors,CC-BY-SA'
},{
'Thunderforest Landscape':'http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png',\
'META': '© OpenCycleMap, © OpenStreetMap contributors,CC-BY-SA'
},{
'Thunderforest Outdoors':'http://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png',\
'META': '© OpenCycleMap, © OpenStreetMap contributors,CC-BY-SA'
},{
'OpenMapSurfer Roads':'http://openmapsurfer.uni-hd.de/tiles/roads/x={x}&y={y}&z={z}',\
'META': 'Imagery from GIScience Research Group @ University of Heidelberg — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'OpenMapSurfer adminb':'http://openmapsurfer.uni-hd.de/tiles/adminb/x={x}&y={y}&z={z}',\
'META': 'Imagery from GIScience Research Group @ University of Heidelberg — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'OpenMapSurfer roadsg':'http://openmapsurfer.uni-hd.de/tiles/roadsg/x={x}&y={y}&z={z}',\
'META': 'Imagery from GIScience Research Group @ University of Heidelberg — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'MapQuestOpen OSM':'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',\
'META': 'Tiles Courtesy of MapQuest — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'MapQuestOpen Aerial':'http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg',\
'META': 'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'
},{
'Stamen Terrain':'http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png',\
'META': 'Map tiles by Stamen Design, CC BY 3.0 — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'Stamen Watercolor':'http://a.tile.stamen.com/watercolor/{z}/{x}/{y}.png',\
'META': 'Map tiles by Stamen Design, CC BY 3.0 — Map data: © OpenStreetMap contributors,CC-BY-SA'
},{
'OpenWeatherMap Clouds':'http://{s}.tile.openweathermap.org/map/clouds/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Precipitation':'http://{s}.tile.openweathermap.org/map/precipitation/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Rain':'http://{s}.tile.openweathermap.org/map/rain/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Pressure':'http://{s}.tile.openweathermap.org/map/pressure/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Wind':'http://{s}.tile.openweathermap.org/map/wind/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Temp':'http://{s}.tile.openweathermap.org/map/temp/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
},{
'OpenWeatherMap Snow':'http://{s}.tile.openweathermap.org/map/snow/{z}/{x}/{y}.png',\
'META': 'Map data © OpenWeatherMap'
}]
return dictionary