Ticket #1592 (new task)

Opened 5 years ago

Last modified 2 years ago

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

Reported by: ahocevar Owned by:
Priority: minor Milestone: Future
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

Changed 5 years ago by euzuro

  • milestone changed from 2.7 Release to 2.8 Release

Changed 4 years ago by crschmidt

  • milestone changed from 2.8 Release to 2.9 Release

Not touched since 2.7, moving forward.

Changed 3 years ago by fredj

  • milestone changed from 2.10 Release to 2.11 Release

No patch, bumping.

Changed 2 years ago by fredj

  • milestone changed from 2.11 Release to Future
Note: See TracTickets for help on using tickets.