Moved coords and address to popup on marker. Wrap old in noscript

This commit is contained in:
Stephan Telling 2016-08-04 17:17:16 +02:00
parent 18a9ae2786
commit fc5c57eb7f

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>
@ -257,5 +259,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 %}