leaflet marker theming
This commit is contained in:
parent
1f1a0711c6
commit
2f82dd981d
8 changed files with 67 additions and 21 deletions
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 5.0.8 on 2024-09-17 17:30
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mapdata', '0109_accesspermissionssogrant_accesspermission_sso_grant'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='theme',
|
||||
name='icon_path',
|
||||
field=models.CharField(blank=True, default='', max_length=255, verbose_name='Root path for icon images'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='theme',
|
||||
name='leaflet_marker_config',
|
||||
field=models.TextField(blank=True, default='', verbose_name='Leaflet marker config override'),
|
||||
),
|
||||
]
|
|
@ -45,6 +45,9 @@ class Theme(TitledMixin, models.Model):
|
|||
verbose_name=_('CSS route dots shadow color'))
|
||||
extra_css = models.TextField(default='', blank=True, verbose_name=_('Extra CSS'))
|
||||
|
||||
icon_path = models.CharField(default='', blank=True, max_length=255, verbose_name=_('Root path for icon images'))
|
||||
leaflet_marker_config = models.TextField(default='', blank=True, verbose_name=_('Leaflet marker config override'))
|
||||
|
||||
color_background = models.CharField(max_length=32, blank=True, verbose_name=_('background color'))
|
||||
color_wall_fill = models.CharField(max_length=32, blank=True, verbose_name=_('wall fill color'))
|
||||
color_wall_border = models.CharField(max_length=32, blank=True, verbose_name=_('wall border color'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue