-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- basemaps in Leaflet #8 - extra basemaps from qgis2leaf #27 - UI icons fixed #21 - QGIS toolbar button added #12 - QGIS menu item renamed
- Loading branch information
1 parent
e4c5c34
commit 3193e7d
Showing
6 changed files
with
139 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# -*- 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 basemapAddresses(): | ||
dictionary = { | ||
'OSM Standard':'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', | ||
'OSM Black & White':'http://{s}.www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png', | ||
'Stamen Toner':'http://a.tile.stamen.com/toner/{z}/{x}/{y}.png', | ||
'OSM DE':'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', | ||
'OSM HOT':'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', | ||
'OpenSeaMap':'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png', | ||
'Thunderforest Cycle':'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png', | ||
'Thunderforest Transport':'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png', | ||
'Thunderforest Landscape':'http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png', | ||
'Thunderforest Outdoors':'http://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', | ||
'OpenMapSurfer Roads':'http://openmapsurfer.uni-hd.de/tiles/roads/x={x}&y={y}&z={z}', | ||
'OpenMapSurfer adminb':'http://openmapsurfer.uni-hd.de/tiles/adminb/x={x}&y={y}&z={z}', | ||
'OpenMapSurfer roadsg':'http://openmapsurfer.uni-hd.de/tiles/roadsg/x={x}&y={y}&z={z}', | ||
'MapQuestOpen OSM':'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg', | ||
'MapQuestOpen Aerial':'http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg', | ||
'Stamen Terrain':'http://a.tile.stamen.com/terrain/{z}/{x}/{y}.png', | ||
'Stamen Watercolor':'http://a.tile.stamen.com/watercolor/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Clouds':'http://{s}.tile.openweathermap.org/map/clouds/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Precipitation':'http://{s}.tile.openweathermap.org/map/precipitation/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Rain':'http://{s}.tile.openweathermap.org/map/rain/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Pressure':'http://{s}.tile.openweathermap.org/map/pressure/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Wind':'http://{s}.tile.openweathermap.org/map/wind/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Temp':'http://{s}.tile.openweathermap.org/map/temp/{z}/{x}/{y}.png', | ||
'OpenWeatherMap Snow':'http://{s}.tile.openweathermap.org/map/snow/{z}/{x}/{y}.png' | ||
} | ||
return dictionary | ||
|
||
def basemapAttributions(): | ||
dictionary = { | ||
'OSM Standard':'© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OSM Black & White':'© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'Stamen Toner':'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OSM DE':'© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OSM HOT':'© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>', | ||
'OpenSeaMap':'Map data: © <a href="http://www.openseamap.org">OpenSeaMap</a> contributors', | ||
'Thunderforest Cycle':'© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'Thunderforest Transport':'© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'Thunderforest Landscape':'© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'Thunderforest Outdoors':'© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OpenMapSurfer Roads':'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OpenMapSurfer adminb':'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OpenMapSurfer roadsg':'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'MapQuestOpen OSM':'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'MapQuestOpen Aerial':'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency', | ||
'Stamen Terrain':'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'Stamen Watercolor':'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data: © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>', | ||
'OpenWeatherMap Clouds':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Precipitation':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Rain':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Pressure':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Wind':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Temp':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>', | ||
'OpenWeatherMap Snow':'Map data © <a href="http://openweathermap.org">OpenWeatherMap</a>' | ||
} | ||
return dictionary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters