Change abstraction level for map functions
This commit should have no functional affect. It just changes the abstraction level of OpenLayers from completely abstracting away getMapExtent etc, to using OpenLayers's functionality directly but providing proj and unproj to make projections palatable.
This commit is contained in:
parent
31ebfc8ed0
commit
701325e9ef
6 changed files with 29 additions and 38 deletions
|
@ -80,9 +80,9 @@
|
|||
selectControl.activate();
|
||||
|
||||
<% if ! @bbox.nil? %>
|
||||
setMapExtent(new OpenLayers.Bounds(<%= @bbox %>));
|
||||
map.setExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
|
||||
<% else %>
|
||||
setMapExtent(bounds);
|
||||
map.setExtent(proj(bounds));
|
||||
<% end %>
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue