feat: Exchange pin with circle
Allows to still see a cities label
This commit is contained in:
parent
226102ccaf
commit
8aab4a13ae
@ -76,7 +76,7 @@
|
||||
image = await map.loadImage('{% static "fellchensammlung/img/pin.png" %}');
|
||||
map.addImage('pin', image.data);
|
||||
{% for map_pin in map_pins %}
|
||||
map.addSource('point', {
|
||||
map.addSource('point_{{ forloop.counter }}', {
|
||||
'type': 'geojson',
|
||||
'data': {
|
||||
'type': 'FeatureCollection',
|
||||
@ -91,16 +91,16 @@
|
||||
]
|
||||
}
|
||||
});
|
||||
{% endfor %}
|
||||
map.addLayer({
|
||||
'id': 'pints',
|
||||
'type': 'symbol',
|
||||
'source': 'point',
|
||||
'layout': {
|
||||
'icon-image': 'pin',
|
||||
'icon-size': 0.1
|
||||
'id': 'point_{{ forloop.counter }}',
|
||||
'type': 'circle',
|
||||
'source': 'point_{{ forloop.counter }}',
|
||||
'paint': {
|
||||
'circle-radius': 18,
|
||||
'circle-color': '#ff878980'
|
||||
}
|
||||
});
|
||||
{% endfor %}
|
||||
});
|
||||
|
||||
{% if search_center %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user