[OpenLayers-Trac] [OpenLayers] #1591: we should have a map getUnits method
OpenLayers
trac at openlayers.org
Wed Jun 18 04:45:51 EDT 2008
#1591: we should have a map getUnits method
----------------------+-----------------------------------------------------
Reporter: pgiraud | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.7 Release
Component: Map | Version: 2.6
Resolution: | Keywords:
State: Commit |
----------------------+-----------------------------------------------------
Changes (by ahocevar):
* state: Review => Commit
Comment:
I can confirm that this works for now, but in general I would prefer if
all those things (resolution, scale, units) would be updated on the map
object in the map.setBaseLayer method instead of using an expensive getter
method to fetch this from the base layer every time it is needed.
Especially for getResolution, which is called for every single feature
during vector rendering, this would really increase performance.
Please commit, but I'll create a new ticket so we don't forget my
concerns.
--
Ticket URL: <http://trac.openlayers.org/ticket/1591#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list