OpenLayers OpenLayers

Ticket #1592 (new task)

Opened 2 months ago

Last modified 1 month ago

Use member variables instead of getResolution(), getScale() and getUnits() on the map

Reported by: ahocevar Assigned to:
Priority: minor Milestone: 2.8 Release
Component: Map Version: 2.6
Keywords: Cc:
State: Needs More Work

Description

Based on #1591, it occurred to me that especially map.getResolution(), which is called on every vector feature being rendered, could be avoided if we had a member variable like currentResolution on the map object. This would have to be update only when zoom or base layer changes. The same is true for getScale(), although this is not used that frequently. And the recently added method getUnits() (#1591) can be avoided at all if map.units is updated in the map.setBaseLayer method.

Change History

07/28/08 14:48:12 changed by euzuro

  • milestone changed from 2.7 Release to 2.8 Release.