-
-
Save anonymous/c084ca73c7a075ce704f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var markers = new L.FeatureGroup(); | |
function locate_map(_lat, _lon) { | |
map.setView([_lat, _lon], 18); | |
var marker = L.marker([_lat, _lon], { icon: marker_icon }) | |
.addTo(map) | |
.bindPopup("LT1") | |
.update(); | |
markers.addLayer(marker); | |
map.addLayer(markers); | |
var map_hash = new L.Hash(map); | |
} | |
function removeAllMarkers(){ | |
map.removeLayer(markers); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment