Sidebar work
This commit is contained in:
parent
6adcce4e5d
commit
a01195f149
9 changed files with 12 additions and 38 deletions
|
@ -63,11 +63,8 @@ function initializeBrowse(map, params) {
|
|||
|
||||
locationFilter.on("change", getData);
|
||||
|
||||
$("#sidebar_title").html(I18n.t('browse.start_rjs.data_frame_title'));
|
||||
$("#sidebar_content").html(sidebarHtml);
|
||||
|
||||
openSidebar();
|
||||
|
||||
if (browseObjectList) loadObjectList();
|
||||
|
||||
map.on("moveend", updateData);
|
||||
|
|
|
@ -9,18 +9,16 @@ function initializeExport(map) {
|
|||
adjustButton: false
|
||||
}).addTo(map);
|
||||
|
||||
update();
|
||||
|
||||
locationFilter.on("change", update);
|
||||
|
||||
map.on("moveend", update);
|
||||
|
||||
$("#sidebar_title").html(I18n.t('export.start_rjs.export'));
|
||||
|
||||
$("#maxlat,#minlon,#maxlon,#minlat").change(boundsChanged);
|
||||
|
||||
$("#drag_box").click(enableFilter);
|
||||
|
||||
openSidebar();
|
||||
|
||||
setBounds(map.getBounds());
|
||||
|
||||
$("#sidebar").one("closed", function () {
|
||||
|
|
|
@ -21,7 +21,6 @@ function initializeSearch(map) {
|
|||
|
||||
var bounds = map.getBounds();
|
||||
|
||||
$("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
|
||||
$("#sidebar_content").load($(this).attr("action"), {
|
||||
query: $("#query").val(),
|
||||
zoom: map.getZoom(),
|
||||
|
@ -31,8 +30,6 @@ function initializeSearch(map) {
|
|||
maxlat: bounds.getNorth()
|
||||
});
|
||||
|
||||
openSidebar();
|
||||
|
||||
$("#sidebar").one("closed", function () {
|
||||
map.removeLayer(marker);
|
||||
map.removeObject();
|
||||
|
@ -67,11 +64,10 @@ function initializeSearch(map) {
|
|||
var center = map.getCenter(),
|
||||
zoom = map.getZoom();
|
||||
|
||||
$("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
|
||||
$("#sidebar_content").load($(this).attr("href"), {
|
||||
lat: center.lat,
|
||||
lon: center.lng,
|
||||
zoom: zoom
|
||||
}, openSidebar);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue