Complete de-globalization of map

This commit is contained in:
John Firebaugh 2013-06-11 15:15:41 -07:00
parent ef73cc1f57
commit 9d33721630
3 changed files with 7 additions and 4 deletions

View file

@ -145,6 +145,9 @@ $(document).ready(function () {
if (!("autofocus" in document.createElement("input"))) {
$("#query").focus();
}
initializeBrowse(map);
initializeNotes(map);
});
function getMapBaseLayerId(map) {

View file

@ -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();
}
});
}

View file

@ -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();
});
});
});
}