Merge pull request #1761 from umap-project/increase-url-template

fix: increase TileLayer.url_template size
This commit is contained in:
Yohan Boniface 2024-04-17 14:57:30 +02:00 committed by GitHub
commit 89c92471bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 5.0.2 on 2024-04-17 09:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("umap", "0019_migrate_internal_remote_datalayers"),
]
operations = [
migrations.AlterField(
model_name="tilelayer",
name="url_template",
field=models.CharField(
help_text="URL template using OSM tile format", max_length=400
),
),
]

View file

@ -92,7 +92,7 @@ class Licence(NamedModel):
class TileLayer(NamedModel): class TileLayer(NamedModel):
url_template = models.CharField( url_template = models.CharField(
max_length=200, help_text=_("URL template using OSM tile format") max_length=400, help_text=_("URL template using OSM tile format")
) )
minZoom = models.IntegerField(default=0) minZoom = models.IntegerField(default=0)
maxZoom = models.IntegerField(default=18) maxZoom = models.IntegerField(default=18)