- return false;
- }
-
- function hideAreas() {
- $("#browse_hide_areas_box").html(I18n.t('browse.start_rjs.show_areas'));
- $("#browse_hide_areas_box").show();
- $("#browse_hide_areas_box").click(showAreas);
-
- areasHidden = true;
-
- useMap(true);
- }
-
- function showAreas() {
- $("#browse_hide_areas_box").html(I18n.t('browse.start_rjs.hide_areas'));
- $("#browse_hide_areas_box").show();
- $("#browse_hide_areas_box").click(hideAreas);
-
- areasHidden = false;
-
- useMap(true);
- }
-
- function endDrag(bbox) {
- var bounds = bbox.getBounds();
- var projected = bounds.clone().transform(map.getProjectionObject(), epsg4326);
-
- browseBoxControl.deactivate();
- browseBounds = projected;
- getData(bounds);
-
- browseMode = "manual";
-
- $("#browse_select_box").html(I18n.t('browse.start_rjs.manually_select'));
- $("#browse_select_view").show();
- }
-
- function displayFeatureWarning(count, limit, callback) {
- clearStatus();
-
- var div = document.createElement("div");
-
- var p = document.createElement("p");
- p.appendChild(document.createTextNode(I18n.t("browse.start_rjs.loaded_an_area_with_num_features", { num_features: count, max_features: limit })));
- div.appendChild(p);
-
- var input = document.createElement("input");
- input.type = "submit";
- input.value = I18n.t('browse.start_rjs.load_data');
- input.onclick = callback;
- div.appendChild(input);
-
- $("#browse_content").html("");
- $("#browse_content").append(div);
- }
-
- function customDataLoader(resp, options) {
- if (map.dataLayer.active) {
- var request = resp.priv;
- var doc = request.responseXML;
-
- if (!doc || !doc.documentElement) {
- doc = request.responseText;
- }