Ticket #3144 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

add support for unchecking / checking restricted extent

Reported by: bartvde Owned by:
Priority: minor Milestone: 2.11 Release
Component: Map Version: 2.10
Keywords: Cc:
State: Commit

Description

This came up when testing ticket:3138, in the restricted-extent.html example, when you zoom in once, and then uncheck the checkbox for the restricted extent, and pan to the SW you'll end up in the ocean above Canada instead.

ahocevar said we could add support for this in setOptions.

Attachments

openlayers-3144.patch Download (0.6 KB) - added by ahocevar 2 years ago.
ol-3144.patch Download (2.0 KB) - added by bartvde 2 years ago.
added a testcase to the patch

Change History

Changed 2 years ago by ahocevar

Changed 2 years ago by ahocevar

  • state set to Review

Changed 2 years ago by bartvde

  • state changed from Review to Commit

This looks good Andreas, in some situations I saw a reloading of the tiles when toggling the restrictedExtent, but normally things should come from browser cache I guess.

I added a testcase, please commit.

Changed 2 years ago by bartvde

added a testcase to the patch

Changed 2 years ago by ahocevar

  • status changed from new to closed
  • resolution set to fixed

(In [11608]) make setOptions work for restrictedExtent change, like it was before #3062. r=bartvde (closes #3144)

Note: See TracTickets for help on using tickets.