WMTS

class visigoth.map_layers.wmts.WMTS(url='https://a.tile.openstreetmap.de/%(zoom)d/%(tilex)d/%(tiley)d.png')

Example

(Link to open example in new tab):

Source Code (Link to Github):

# -*- coding: utf-8 -*-

from visigoth import Diagram
from visigoth.containers import Map, Box
from visigoth.map_layers import WMTS, Geoplot
from visigoth.utils.mapping import Projections
from visigoth.map_layers.geoplot import Multipoint

d = Diagram()

bounds = ((166.509144322, -46.641235447),(178.517093541, -34.4506617165))

m1 = Map(512,boundaries=bounds,zoom_to=2,projection=Projections.ESPG_3857)
m1.addLayer(WMTS())
m1.addLayer(Geoplot(multipoints=[Multipoint([(172.639847,-43.525650)],label="Christchurch",marker=True,fill="#FF000050")]))
d.add(Box(m1))

html = d.draw(format="html")

f = open("example.html", "w")
f.write(html)
f.close()