OpenLayers OpenLayers

Ticket #442 (closed feature: wontfix)

Opened 3 years ago

Last modified 1 year ago

animated zooming

Reported by: euzuro Assigned to: metacarta
Priority: critical Milestone: 2.6 Release
Component: Control.PanZoomBar Version:
Keywords: Cc:
State:

Description

Much like #110 (animated panning), we should consider some sort of animated zooming.

See comment from John Cole below

Attachments

animatedZooming_1.0.patch (15.7 kB) - added by emanuel on 02/02/07 09:19:11.
animatedZooming_1.1.patch (19.0 kB) - added by emanuel on 02/06/07 02:48:59.
animatedZooming_1.2.patch (25.1 kB) - added by emanuel on 02/09/07 10:51:20.
animatedZooming_1.3.patch (50.8 kB) - added by emanuel on 02/23/07 07:57:08.
animatedZooming_1.4.patch (80.3 kB) - added by emanuel on 03/02/07 10:09:51.
final_animatedZooming_Core.patch (65.9 kB) - added by emanuel on 03/29/07 03:52:35.
basics of animated zooming (unit tests included)
final_animatedZooming_PanZoomBar.patch (4.9 kB) - added by emanuel on 03/29/07 03:55:56.
PanZoomBar supports animated zooming (included unit tests)
final_animatedZooming_Mouse.patch (13.3 kB) - added by emanuel on 03/29/07 03:59:32.
mouseWheel, zoomBox, DblClick supports animated zooming (included unit tests)
final_animatedZooming_OverviewMap.patch (13.6 kB) - added by emanuel on 03/29/07 04:02:20.
CverviewMap supports animated zooming and panning (included unit tests)
final_animatedZooming_LayerWMSUntiled.patch (11.0 kB) - added by emanuel on 03/29/07 04:05:42.
WMS untiled baselayer supports animated zooming (included unit tests)
final_animatedZooming_LayerImage.patch (5.4 kB) - added by emanuel on 03/29/07 04:06:44.
Image baselayer supports animated zooming (included unit tests)

Change History

12/08/06 09:53:49 changed by euzuro

Comments from John Cole to users@ list

Also, is there a way to expand or shrink a layer, so that when you zoom, the
map can be expanded/shrunk in real time until the layers can be refreshed?
Doing this really helps visualize where your zooming to and it is really
important when mouse wheel zooming to know what level your zooming to.

12/13/06 07:50:19 changed by openlayers

I'm interested in the development of this feature:
http://openlayers.org/pipermail/dev/2006-December/000176.html

01/03/07 13:49:51 changed by emanuel

  • owner set to emanuel.

02/02/07 09:19:11 changed by emanuel

  • attachment animatedZooming_1.0.patch added.

02/02/07 09:45:08 changed by emanuel

  • keywords set to review.
  • component changed from Control.MouseDefaults to Control.PanZoomBar.

02/06/07 02:48:59 changed by emanuel

  • attachment animatedZooming_1.1.patch added.

02/06/07 02:54:01 changed by emanuel

version 1.1:
Now, the demo scales the red rectangle in the overviewmap.

02/09/07 10:51:20 changed by emanuel

  • attachment animatedZooming_1.2.patch added.

02/09/07 10:54:21 changed by emanuel

version 1.2:
zooming out with an extra tile

02/23/07 07:57:08 changed by emanuel

  • attachment animatedZooming_1.3.patch added.

02/23/07 08:03:43 changed by emanuel

version 1.3:
- scale baselayer only
- support wms, wms untiled and image baselayers
- "smooth tile update" - it doesn't show a blank map after zooming (with slider)
- recenter overviewmap after drag, doubleclick and panning

03/02/07 10:09:51 changed by emanuel

  • attachment animatedZooming_1.4.patch added.

03/02/07 10:14:23 changed by emanuel

version 1.4:
- animated panning integrated (also for overviewmap)
- animated zooming for +/- buttons, zoomBox, doubleclick, mousewheel, +/- keys (together with animated panning!)
- by using mousewheel: target below mousecursor stays at the same position after zooming; target not recenter
- new keys (pos1, end, page up/down) set for better panning

03/09/07 16:14:41 changed by sderle

  • milestone set to 2.4 Release.

03/16/07 14:40:18 changed by euzuro

  • milestone changed from 2.4 Release to 2.5 Release.

03/29/07 03:52:35 changed by emanuel

  • attachment final_animatedZooming_Core.patch added.

basics of animated zooming (unit tests included)

03/29/07 03:55:56 changed by emanuel

  • attachment final_animatedZooming_PanZoomBar.patch added.

PanZoomBar supports animated zooming (included unit tests)

03/29/07 03:59:32 changed by emanuel

  • attachment final_animatedZooming_Mouse.patch added.

mouseWheel, zoomBox, DblClick supports animated zooming (included unit tests)

03/29/07 04:02:20 changed by emanuel

  • attachment final_animatedZooming_OverviewMap.patch added.

CverviewMap supports animated zooming and panning (included unit tests)

03/29/07 04:05:42 changed by emanuel

  • attachment final_animatedZooming_LayerWMSUntiled.patch added.

WMS untiled baselayer supports animated zooming (included unit tests)

03/29/07 04:06:44 changed by emanuel

  • attachment final_animatedZooming_LayerImage.patch added.

Image baselayer supports animated zooming (included unit tests)

03/29/07 04:23:25 changed by emanuel

My final animated zooming patches are attached.
Please note: If you run animated zooming (core) patch _and_ animated panning patch you have to merge some hunks manually!
The overviewMap patch is also running without animtated zooming core.

You can test all animated zooming and panning patches in this Demo.

05/13/07 08:27:19 changed by jrf

  • keywords changed from review to review, integrate into trunk.
  • priority changed from minor to blocker.

05/23/07 23:49:13 changed by crschmidt

  • keywords changed from review, integrate into trunk to review.
  • owner changed from emanuel to metacarta.
  • priority changed from blocker to critical.

08/03/07 09:35:58 changed by euzuro

  • milestone changed from 2.5 Release to 2.6 Release.

01/14/08 07:48:24 changed by crschmidt

  • status changed from new to closed.
  • state deleted.
  • resolution set to wontfix.

This code, although a wonderful demo, has had some significant problems blocking its integration into trunk. In some browsers, performance quickly degrades, and in general, the code is somewhat more complex than it could be.

Additionally, this code is now out of date -- this not being the fault of the patch creator, but simply the fact that previous attempts to integrate it into trunk have failed.

#933 has taken much of the core ideas in this code, and collected them into a patch that works better with the current way of working within OpenLayers. It was based in part upon this patch, and other general observations made in the interim.

It is unlikely that it will replicate all the behavior desired by this ticket. The active zooming as you move the panzoombar up and down, for example, is unlikely to remain in its current state -- but once #933 is implemented, it should be easier to integrate this type of behavior into your map.

I think this ticket, although interesting for historical reasons, is essentially a duplicate of #933 at this point. I appreciate all the work that emmanuel did, and I'm sorry that we didn't succeed in integrating it. I'm hoping that #933 implements the functionality that users are most interested in, and we can move forward with a cleaner implementation that works for everyone.

Emmanuel, thank you for your hard work. If anyone is interested in helping pursue testing and further work on #933, please feel free to do so -- and if you can't figure out how to help, please email the dev mailing list.