submarcos / django-vectortiles

Mapbox VectorTiles for django, with PostGIS or Python
https://django-vectortiles.readthedocs.io
MIT License
38 stars 11 forks source link

Define setting to use many domains in tilejson tile url #16

Open submarcos opened 3 years ago

submarcos commented 3 years ago

Actually tilejson generate a single relative url in list.

To work wirh mapbox, we need to define possible values to generate absolute urls.

Ex :

From

tiles : ["/features/tile/{z}/{x}/{y}"]

To

tiles: [
  "https://a.mydomain.com/features/tile/{z}/{x}/{y}",
  "https://b.mydomain.com/features/tile/{z}/{x}/{y}"
]