Make switching data browser to current map view work
This commit is contained in:
parent
b0453833b1
commit
c3500df1cf
1 changed files with 2 additions and 2 deletions
|
@ -35,6 +35,8 @@ function startBrowse() {
|
|||
map.events.register("moveend", map, updateData);
|
||||
map.events.triggerEvent("moveend");
|
||||
|
||||
$("#browse_select_view").click(useMap);
|
||||
|
||||
$("#browse_select_box").click(startDrag);
|
||||
|
||||
$("#browse_hide_areas_box").html("<%=j t 'browse.start_rjs.hide_areas' %>");
|
||||
|
@ -133,8 +135,6 @@ function showAreas() {
|
|||
useMap(true);
|
||||
}
|
||||
|
||||
$("#browse_select_view").click(useMap);
|
||||
|
||||
function endDrag(bbox) {
|
||||
var bounds = bbox.getBounds();
|
||||
var projected = bounds.clone().transform(map.getProjectionObject(), epsg4326);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue