[OpenLayers-Dev] OpenLayers 2.4 - map mousedown event

Christopher Schmidt crschmidt at metacarta.com
Tue Jun 5 00:25:53 EDT 2007


On Mon, Jun 04, 2007 at 09:00:36PM -0400, Stephen Woodbridge wrote:
> Christopher,
> 
> Do you have any thoughts, advice, a patch maybe to fix this?
> Do you want a ticket opened for this issue?

Actually, I know how to workaround this: use the MouseDefaults control
instead of the Navigation control. I even know why it happens. It still
needs a ticket. 

You can obtain the correct behavior by changing:

var map = new OpenLayers.Map('map');

to:

var map = new OpenLayers.Map('map', {controls:[
  new OpenLayers.Control.MouseDefaults(),
  new OpenLayers.Control.ArgParser(),
  new OpenLayers.Control.PanZoom()
  ]}
);

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list