[OpenLayers-Dev] OpenLayers 2.4 - map mousedown event
Stephen Woodbridge
woodbri at swoodbridge.com
Wed Jun 6 15:38:22 EDT 2007
http://trac.openlayers.org/ticket/741
Christopher Schmidt wrote:
> 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,
More information about the Dev
mailing list