//= require templates/browse/feature_list
//= require templates/browse/feature_history
-function initializeBrowse(map, params) {
+function initializeBrowse(map) {
var browseBounds;
var layersById;
var selectedLayer;
}
});
- if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') {
- if (params.layers.indexOf(dataLayer.options.code) >= 0) {
- map.addLayer(dataLayer);
- }
- }
-
function startBrowse(sidebarHtml) {
locationFilter = new L.LocationFilter({
enableButton: false,
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);
getData();
}
- function toggleAreas() {
+ function toggleAreas(e) {
+ e.preventDefault();
+
if (areasHidden) {
$("#browse_hide_areas_box").html(I18n.t('browse.start_rjs.hide_areas'));
areasHidden = false;