maps: add book icon to possible markers (#17541)
This commit is contained in:
parent
bc3d98a83b
commit
ab86579592
|
@ -18,7 +18,7 @@ class Migration(migrations.Migration):
|
|||
('slug', models.SlugField(verbose_name='Identifier')),
|
||||
('geojson_url', models.URLField(max_length=1024, verbose_name='Geojson URL')),
|
||||
('marker_colour', models.CharField(default=b'#0000FF', max_length=7, verbose_name='Marker colour')),
|
||||
('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=[(b'house', 'House'), (b'building', 'Building'), (b'hospital', 'Hospital'), (b'ambulance', 'Ambulance'), (b'taxi', 'Taxi'), (b'subway', 'Subway'), (b'wheelchair', 'Wheelchair'), (b'bicycle', 'Bicycle'), (b'car', 'Car'), (b'train', 'Train'), (b'bus', 'Bus'), (b'motorcycle', 'Motorcycle'), (b'truck', 'Truck')])),
|
||||
('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='Marker icon', choices=[(b'book', 'Book'), (b'house', 'House'), (b'building', 'Building'), (b'hospital', 'Hospital'), (b'ambulance', 'Ambulance'), (b'taxi', 'Taxi'), (b'subway', 'Subway'), (b'wheelchair', 'Wheelchair'), (b'bicycle', 'Bicycle'), (b'car', 'Car'), (b'train', 'Train'), (b'bus', 'Bus'), (b'motorcycle', 'Motorcycle'), (b'truck', 'Truck')])),
|
||||
('icon_colour', models.CharField(default=b'#FFFFFF', max_length=7, verbose_name='Icon colour')),
|
||||
],
|
||||
options={'ordering': ('label',)}
|
||||
|
|
|
@ -30,6 +30,7 @@ from combo.utils import requests
|
|||
|
||||
|
||||
ICONS = [
|
||||
('book', _('Book')),
|
||||
('house', _('House')),
|
||||
('building', _('Building')),
|
||||
('hospital', _('Hospital')),
|
||||
|
|
|
@ -109,3 +109,7 @@ i.leaflet-marker-icon.truck::before {
|
|||
content: "\f0d1"; /* truck */
|
||||
}
|
||||
|
||||
select#id_icon option[value=book]::before,
|
||||
i.leaflet-marker-icon.book::before {
|
||||
content: "\f02d"; /* book */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue