//= require_self
+//= require leaflet.customzoom
+//= require leaflet.locate
//= require leaflet.layers
-//= require leaflet.share
+//= require leaflet.key
//= require leaflet.note
-//= require leaflet.locate
-//= require leaflet.customzoom
+//= require leaflet.share
//= require index/browse
//= require index/export
-//= require index/key
//= require index/notes
$(document).ready(function () {
layers[0].addTo(map);
+ map.noteLayer = new L.LayerGroup({code: 'N'});
+ map.dataLayer = new L.OSM.DataLayer(null);
+
$("#map").on("resized", function () {
map.invalidateSize();
});
L.control.customZoom({position: 'topright'})
.addTo(map);
+ L.control.locate({position: 'topright'})
+ .addTo(map);
+
var uiPane = $('#map-ui')[0];
L.OSM.layers({
uiPane: uiPane
}).addTo(map);
- L.control.share({
+ L.OSM.key({
+ position: 'topright',
+ uiPane: uiPane
+ }).addTo(map);
+
+ L.OSM.note({
+ position: 'topright',
+ uiPane: uiPane
+ }).addTo(map);
+
+ L.OSM.share({
getUrl: getShortUrl,
uiPane: uiPane
}).addTo(map);
- L.control.note({ position: 'topright' }).addTo(map);
- L.control.locate({ position: 'topright' }).addTo(map);
- L.control.scale().addTo(map);
+ L.control.scale()
+ .addTo(map);
map.on('moveend layeradd layerremove', updateLocation);
$("#query").focus();
}
+ initializeExport(map);
initializeBrowse(map);
initializeNotes(map);
});