Ticket #3005 (closed bug: duplicate)

Opened 2 years ago

Last modified 22 months ago

zoomBox never disappear if mouse is released over the overviewMap

Reported by: gael Owned by: tschaub
Priority: minor Milestone: 2.11 Release
Component: Control.OverviewMap Version: 2.11 RC1
Keywords: Cc:
State:

Description

Hi,

I'm using a map with both overviewMap control and zoomBox Control to navigate on the map.

When using the zoomBox control, if you release the mouse on the overviewMap, the zoom is not made and you are still drawing a box. It appears that the Box "endBox" callback is never called and the drag Handler controlling the box never stopped.

Finally, if you click somewhere else on the map, your box remains and the zoom behaves as you just double-clicked on that point.

Could someone help me find a workaround ? Thanks.

Attachments

simple-Map-with-both-zoomBox-and-overviewMap.html Download (1.5 KB) - added by gael 2 years ago.
Here is a simple map with both the overviewMap and zoomBox Controls

Change History

Changed 2 years ago by gael

Here is a simple map with both the overviewMap and zoomBox Controls

follow-up: ↓ 2   Changed 2 years ago by gael

Fortunately,I succeded in finding a solution for that problem, as it seams to be working on my side. The issues comes from a strange inversion of fallThrough parameters in overviewMap.js file.

487	        // create the overview map
488	        var options = OpenLayers.Util.extend(
489	                        {controls: [], maxResolution: 'auto',
490	                         fallThrough: false}, this.mapOptions);
.
.
.
528	        this.rectEvents = new OpenLayers.Events(this, this.extentRectangle,
529	                                                null, true);

became

487	        // create the overview map
488	        var options = OpenLayers.Util.extend(
489	                        {controls: [], maxResolution: 'auto',
490	                         fallThrough: true}, this.mapOptions);
.
.
.
528	        this.rectEvents = new OpenLayers.Events(this, this.extentRectangle,
529	                                                null, false);

and the zoomBox control is back to a normal behaviour.

Ohh crap stupid thing ...

in reply to: ↑ 1 ; follow-up: ↓ 3   Changed 2 years ago by jorix

Replying to gael:

Fortunately,I succeded in finding ...

This is not a solution. The aplicanción of these changes can start a DragPan or ZoomBox of the main map in the OverviewMap

The problem also is DragPan, if you release the mouse on the OverviewMap drag remains active.

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 2 years ago by gael

Replying to jorix:

This is not a solution. ...

This also solves the remain-active DragPan problem. (never noticed this one)

The fact that you can start a dragPan or a zoomBox in the overviewMap is not so problematic, as the drag of the map extent in the overview is still working properly.

I think my users will accommodate.

in reply to: ↑ 3   Changed 2 years ago by jorix

Replying to gael:

... I think my users will accommodate.

Yes the feeling is not so confusing, but I think the behavior is still wrong with DragPan and ZoomBox.

I do not know what is the opinion of OpenLayers.

  Changed 2 years ago by jorix

  • cc xavier.mamano@… added

  Changed 2 years ago by jorix

  • milestone set to 2.11 Release

  Changed 2 years ago by jorix

  • cc xavier.mamano@… removed

  Changed 2 years ago by jorix

See partial patch on #3193 (3193.2.patch)

  Changed 2 years ago by jorix

Patches #3091 + #3239 solves the problem.

  Changed 2 years ago by ahocevar

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

Looking at the above comment, I'd assume this is fixed. Feel free to reopen if this isn't true.

  Changed 22 months ago by tschaub

  • status changed from closed to reopened
  • resolution fixed deleted

  Changed 22 months ago by tschaub

  • status changed from reopened to closed
  • version changed from SVN to 2.11 RC1
  • resolution set to duplicate
  • milestone changed from 2.12 Release to 2.11 Release
Note: See TracTickets for help on using tickets.