+ var map = createMap("map", {
+ zoomControl: false,
+ layerControl: false
+ }, {
+ locateControl: true
+ });
+
+ L.control.zoom({position: 'topright'})
+ .addTo(map);
+
+ OSM.mapUI().addTo(map);
+
+ L.control.share({
+ getUrl: function(map) {
+ return setArgs('http://osm.org/', {
+ lon: map.getCenter().lng,
+ lat: map.getCenter().lat
+ });
+ }
+ }).addTo(map);
+
+ L.control.locate({
+ position: 'topright'
+ }).addTo(map);
+
+ L.control.scale().addTo(map);
+
+ map.attributionControl.setPrefix(permalinks);
+
+ map.on("moveend layeradd layerremove", updateLocation);