Projet

Général

Profil

0001-mas-add-more-marker-icons-20922.patch

Frédéric Péters, 21 janvier 2018 11:05

Télécharger (2,89 ko)

Voir les différences:

Subject: [PATCH] mas: add more marker icons (#20922)

 combo/apps/maps/models.py                 | 39 ++++++++++++++++++++++---------
 combo/apps/maps/static/css/combo.map.scss | 18 ++++++++++++++
 2 files changed, 46 insertions(+), 11 deletions(-)
combo/apps/maps/models.py
30 30

  
31 31

  
32 32
ICONS = [
33
    ('book', _('Book')),
34
    ('house', _('House')),
35
    ('building', _('Building')),
36
    ('hospital', _('Hospital')),
37 33
    ('ambulance', _('Ambulance')),
38
    ('taxi', _('Taxi')),
39
    ('subway', _('Subway')),
40
    ('wheelchair', _('Wheelchair')),
34
    ('asterisk', _('Asterisk')),
35
    ('bell', _('Bell')),
41 36
    ('bicycle', _('Bicycle')),
42
    ('car', _('Car')),
43
    ('train', _('Train')),
37
    ('book', _('Book')),
38
    ('broken_chain', _('Broken chain')),
39
    ('building', _('Building')),
44 40
    ('bus', _('Bus')),
41
    ('car', _('Car')),
42
    ('checkmark', _('Checkmark')),
43
    ('cube', _('Cube')),
44
    ('drop', _('Drop')),
45
    ('eye', _('Eye')),
46
    ('flag', _('Flag')),
47
    ('gavel', _('Gavel')),
48
    ('hospital', _('Hospital')),
49
    ('house', _('House')),
50
    ('lightbulb', _('Lightbulb')),
51
    ('map_signs', _('Map signs')),
45 52
    ('motorcycle', _('Motorcycle')),
46
    ('truck', _('Truck')),
53
    ('paint_brush', _('Paint brush')),
54
    ('paw', _('Paw')),
55
    ('recycle', _('Recycle')),
56
    ('road', _('Road')),
47 57
    ('shower', _('Shower')),
58
    ('star', _('Star')),
59
    ('subway', _('Subway')),
60
    ('taxi', _('Taxi')),
61
    ('train', _('Train')),
48 62
    ('trash', _('Trash')),
49
    ('recycle', _('Recycle')),
63
    ('tree', _('Tree')),
64
    ('truck', _('Truck')),
50 65
    ('university', _('University')),
66
    ('warning', _('Warning')),
67
    ('wheelchair', _('Wheelchair')),
51 68
]
52 69

  
53 70
ZOOM_LEVELS = [ ('0', _('Whole world')),
combo/apps/maps/static/css/combo.map.scss
17 17
	(truck, "\f9d1"),
18 18
	(university, "\f19c"),
19 19
	(wheelchair, "\f193"),
20
	(drop, "\f043"), // tint
21
	(bolt, "\f0e7"),
22
	(broken_chain, "\f127"), // chain-broken
23
	(bell, "\f0a2"), // bell-o
24
	(eye, "\f06e"),
25
	(gavel, "\f0e3"),
26
	(asterisk, "\f069"),
27
	(star, "\f005"),
28
	(checkmark, "\f00c"), // check
29
	(paw, "\f1b0"),
30
	(lightbulb, "\f0eb"), // lightbulb-o
31
	(cube, "\f1b2"),
32
	(paint_brush, "\f1fc"),
33
	(tree, "\f1bb"),
34
	(road, "\f018"),
35
	(warning, "\f071"), // exclamation-triangle
36
	(map_signs, "\f277"),
37
	(flag, "\f024"),
20 38
);
21 39

  
22 40
div.combo-cell-map.leaflet-container {
23
-