Ticket #2479 (closed feature: fixed)

Opened 3 years ago

Last modified 3 years ago

Map.getResolution needs a fallback to 1st layer in allOverlays mode

Reported by: ahocevar Owned by:
Priority: minor Milestone: 2.9 Release
Component: Map Version: 2.8
Keywords: Cc:
State: Complete

Description

In allOverlays mode, when useInRange for a layer is true (e.g. because it is configured with a maxExtent, that layer will be invisible if it is the 1st layer added to the map.

Attached is a testcase that shows the issue, plus a patch that fixes it.

Tests pass, please review.

Attachments

openlayers-2479.patch Download (1.6 KB) - added by ahocevar 3 years ago.

Change History

Changed 3 years ago by ahocevar

Changed 3 years ago by tschaub

  • state set to Commit

Confirmed that tests pass in FF3.5 and IE6. Looks good. Please commit.

Changed 3 years ago by ahocevar

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [10043]) give map::getResolution a fallback from baseLayer to the 1st layer if in allOverlays mode. r=tschaub (closes #2479)

Note: See TracTickets for help on using tickets.