Ticket #1770 (closed feature: fixed)

Opened 5 years ago

Last modified 4 years ago

Patch for keeping the box in OverView map always in the center

Reported by: jachym Owned by: tschaub
Priority: minor Milestone: 2.8 Release
Component: Control.OverviewMap Version: SVN
Keywords: Cc:
State: Complete

Description

Someone (me) could need, that the box, displaying current extend in the map, is always set to center. This little patch introduces new APIProperty to OpenLayers.Control.OverviewMap, which can turn this feature on.

Attachments

OverviewMap.js.patch Download (0.7 KB) - added by jachym 5 years ago.
New APIProperty, which can force always recenter the box in overview map
oop.patch Download (445 bytes) - added by tschaub 4 years ago.
what should have been

Change History

Changed 5 years ago by jachym

New APIProperty, which can force always recenter the box in overview map

Changed 5 years ago by crschmidt

  • state set to Review

Changed 4 years ago by tschaub

  • keywords OverviewMap, Box, always recenter removed
  • status changed from new to closed
  • state changed from Review to Complete
  • resolution set to fixed

(In [8805]) Add an autoPan property to the overview map. Set this to true if you want the extent marker to return to the center of the overview map after you drag it. Thanks for the patch jachym. r=me (closes #1770)

Changed 4 years ago by crschmidt

  • status changed from closed to reopened
  • state changed from Complete to Needs More Work
  • resolution fixed deleted

With this change (r8805), the OverviewMap fails tests in IE6, IE7, and Safari, due to the latitude not matching after a drag. I don't see why this is, but reopening as a reminder to trac this down.

Changed 4 years ago by tschaub

what should have been

Changed 4 years ago by crschmidt

  • state changed from Needs More Work to Commit

Changed 4 years ago by tschaub

I tested with the original patch, then started messing with things to see the example difference. Default should be false (as the docs say). Apologies for the sloppy commit.

Changed 4 years ago by tschaub

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

(In [8841]) Correcting what was a mistake in r8805. Original patch was good. The autoPan property should default to false. Apologies for the failing tests. r=crschmidt (closes #1770)

Note: See TracTickets for help on using tickets.