Add Wikimedia tile provider

Closes #15097186.

authorYann Voté <yann.vote@logilab.fr>
changeset777a614d8456
branchdefault
phasepublic
hiddenno
parent revision#e6b4cf8627b9 Added tag 0.5.1, debian/0.5.1-1, centos/0.5.1-1 for changeset e560faf15418
child revision#1f2d0f3fdee6 [pkg] prepare 0.6.0
files modified by this revision
views.py
# HG changeset patch
# User Yann Voté <yann.vote@logilab.fr>
# Date 1472483787 -7200
# Mon Aug 29 17:16:27 2016 +0200
# Node ID 777a614d8456755a666b23a4bcc1c248d4eeba29
# Parent e6b4cf8627b9991f92005046002043590fe9410f
Add Wikimedia tile provider

Closes #15097186.

diff --git a/views.py b/views.py
@@ -55,10 +55,18 @@
1              'attribution': (
2                  '&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '
3                  '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
4              ),
5          },
6 +        'wikimedia': {
7 +            'url': 'https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png',
8 +            'attribution': (
9 +                'Wikimedia maps beta, '
10 +                'Maps data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '
11 +                '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
12 +            ),
13 +        },
14          'esri-topomap': {
15              'url':
16              'http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/'
17              'tile/{z}/{y}/{x}',
18              'attribution': ('{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ, TomTom, Intermap, '