Complete de-globalization of map
This commit is contained in:
parent
ef73cc1f57
commit
9d33721630
3 changed files with 7 additions and 4 deletions
|
@ -145,6 +145,9 @@ $(document).ready(function () {
|
|||
if (!("autofocus" in document.createElement("input"))) {
|
||||
$("#query").focus();
|
||||
}
|
||||
|
||||
initializeBrowse(map);
|
||||
initializeNotes(map);
|
||||
});
|
||||
|
||||
function getMapBaseLayerId(map) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//= require templates/browse/feature_list
|
||||
//= require templates/browse/feature_history
|
||||
|
||||
$(document).ready(function () {
|
||||
function initializeBrowse(map) {
|
||||
var browseBounds;
|
||||
var layersById;
|
||||
var selectedLayer;
|
||||
|
@ -327,4 +327,4 @@ $(document).ready(function () {
|
|||
$("#browse_status").html("");
|
||||
$("#browse_status").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//= require templates/notes/show
|
||||
//= require templates/notes/new
|
||||
|
||||
$(document).ready(function () {
|
||||
function initializeNotes(map) {
|
||||
var params = OSM.mapParams(),
|
||||
noteLayer = new L.LayerGroup({code: 'N'}),
|
||||
notes = {},
|
||||
|
@ -268,4 +268,4 @@ $(document).ready(function () {
|
|||
e.target.openPopup();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue