mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Prevent Google Maps API to empty the events' map
(Empty latitude/longitude data should be ignored)
This commit is contained in:
parent
3a02772be5
commit
96de05b56c
1 changed files with 2 additions and 2 deletions
|
@ -22,11 +22,11 @@ L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|||
}).addTo(map);
|
||||
|
||||
var markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 40});
|
||||
{% filter_for p in site.conferences sort_by:date %}{% if p.geoloc != 'false' %}
|
||||
{% filter_for p in site.conferences sort_by:date %}{% if p.geoloc %}
|
||||
L.marker([{{ p.geoloc }}]).bindPopup('<b><a href="{{ p.link | htmlescape }}">{{ p.title | htmlescape }}</a></b><br>{{ p.date }}<br>{{ p.venue | htmlescape }}<br>{{ p.address | htmlescape }}<br>{{ p.city | htmlescape }}, {{ p.country | htmlescape }}').addTo(markers);
|
||||
{% endif %}{% endfilter_for %}
|
||||
|
||||
{% filter_for p in site.meetups sort_by:date %}{% if p.geoloc != 'false' %}
|
||||
{% filter_for p in site.meetups sort_by:date %}{% if p.geoloc %}
|
||||
L.marker([{{ p.geoloc }}]).bindPopup('<b><a href="{{ p.link | htmlescape }}">{{ p.title | htmlescape }}</a></b><br>{{ p.date }}<br>{{ p.venue | htmlescape }}<br>{{ p.address | htmlescape }}<br>{{ p.city | htmlescape }}, {{ p.country | htmlescape }}').addTo(markers);
|
||||
{% endif %}{% endfilter_for %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue