OpenLayers OpenLayers

Ticket #1380 (new bug)

Opened 10 months ago

Multimap layers lags behind mouse pointer on pan

Reported by: openlayers Assigned to: euzuro
Priority: major Milestone:
Component: Layer.MultiMap Version: 2.5
Keywords: Cc: nick@shmanahar.org
State:

Description

When a Multimap layer is configured, if you click on a point and pan across some distance, the mouse pointer will no longer be pointing at that point. This has the effect of making interaction with the map seem rather sluggish.

This is due to the smooth scrolling code in the Multimaps API library.

A fix is just to disable smoothscroll whenever a multimap layer is created - I have just put the line

this.mapObject.setOption('smoothpan', false);

in the loadMapObject() function in lib/OpenLayers/Layer/MultiMap.js.

cheers

Nick