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:
Tom MacWright 2012-03-12 12:52:40 -04:00 committed by Tom Hughes
parent 31ebfc8ed0
commit 701325e9ef
6 changed files with 29 additions and 38 deletions

View file

@ -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 %>
}