Merge pull request #66 from Telling/map-fix

Moved coords and address to popup on marker. Wrap old in noscript
This commit is contained in:
Víðir Valberg Guðmundsson 2016-08-04 18:02:10 +02:00 committed by GitHub
commit b355cc4796

View file

@ -31,10 +31,12 @@ Info | {{ block.super }}
Where is BornHack going to take place? Where is BornHack going to take place?
</h2> </h2>
<div id="map" class="map"></div> <div id="map" class="map"></div>
<noscript>
<p> <p>
<strong>Coordinates</strong>: 55.011520, 14.975360<br /> <strong>Coordinates</strong>: 55.011520, 14.975360<br />
<strong>Address</strong>: Baunevej 11, 3720 Aakirkeby <strong>Address</strong>: Baunevej 11, 3720 Aakirkeby
</p> </p>
</noscript>
</div> </div>
</div> </div>
@ -258,5 +260,9 @@ Info | {{ block.super }}
var camp_latlong = [55.011520, 14.975360]; var camp_latlong = [55.011520, 14.975360];
L.marker(camp_latlong).addTo(map); L.marker(camp_latlong).addTo(map);
L.marker(camp_latlong).addTo(map)
.bindPopup('<strong>Coordinates:</strong><br>55.011520, 14.975360<br><strong>Address:</strong><br>Baunevej 11, 3720 Aakirkeby')
.openPopup();
</script> </script>
{% endblock %} {% endblock %}