Permalink
Browse files

Add leaflet to index.html

  • Loading branch information...
arenius committed Feb 17, 2015
1 parent 7f90b78 commit db65a38e6a0a69b1f6e0ac11f612543131946db7
Showing with 5 additions and 0 deletions.
  1. +5 −0 demo_website/index.html
View
@@ -291,6 +291,11 @@ <h1>What's on my Ballot?</h1>
maxZoom: 18,
id: 'examples.map-i875mjb7'
}).addTo(map);
+ var marker;
+ map.on('click', function(e) {
+ marker = new L.marker(e.latlng,{draggable: true});
+ map.addLayer(marker);
+ });
</script>
<div class="map-details" style="display:none;">

0 comments on commit db65a38

Please sign in to comment.