Opened 7 years ago

Last modified 6 years ago

#363 new enhancement

Use predefined scales from map object for GeoExt.data.ScaleStore if available

Reported by: chrismayer Owned by:
Priority: minor Milestone: 1.2
Component: GeoExt.data.ScaleStore Version: trunk
Keywords: scales, scalestore, scale chooser Cc:
State: Needs more work

Description

Some scales are not shown correctly in the scale chooser based on GeoExt.data.ScaleStore. For example 1:49999 is displayed instead of 1:50000.

Within the populateFromMap() function in GeoExt.data.ScaleStore the scales are always calculated with OpenLayers.Util.getScaleFromResolution(...), although they are defined in this.map.scales.

To fix this a first approach is provided in the attached patch. There are more cases to check, for example whether the scales array was set on the map or on the base layer or on both.

Attachments (1)

scalestore-get-map-scale.patch (831 bytes) - added by chrismayer 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by chrismayer

comment:1 Changed 6 years ago by ahocevar

  • Milestone changed from 1.1 to 1.2

Batch move of tickets to finish the 1.1 milestone.

Note: See TracTickets for help on using tickets.