[OpenLayers-Users] 2.3RC2 problem?

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jan 23 08:04:08 EST 2007


Hi Christopher,

it happens in both Firefox and IE. It happens every time.

But not on the site you point out. My code is slightly different though (I
construct the map object without the default controls):

map = new OpenLayers.Map( $('imgMapContainer'), { controls: [],
'projection': 'EPSG:28992', 'units':'m', 'maxExtent': new
OpenLayers.Bounds(-80000, 300000, 370000, 615000) ,
'maxResolution':'auto'});

map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseDefaults());
map.addControl(new OpenLayers.Control.MouseToolbar(new
OpenLayers.Pixel(30,0), 'horizontal'));

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Christopher Schmidt <crschmidt at metacarta.com>
Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
Cc: users at openlayers.org
Onderwerp: Re: [OpenLayers-Users] 2.3RC2 problem?
Datum: 23/01/07 10:55

> On Tue, Jan 23, 2007 at 09:25:14AM +0100, Bart van den Eijnden (OSGIS)
wrote:
> &gt; Hi list,
> &gt; 
> &gt; when using the PanZoomBar, MouseDefaults and MouseToolbar controls, I
get
> &gt; unexpected behaviour.
> &gt; 
> &gt; When I select the zoom tool on the mousetoolbar, and I try to draw a
box on
> &gt; the map, the map also pans. I've had this problem before though, so
it might
> &gt; not be 2.3RC2 specific. Using shift the draw the box all is fine.
> 
> What browser is this in? I presume IE.
> 
> Does it happen every time, or only intermittently?
> 
> Does it happen on http://openlayers.org/dev/examples/controls.html ?
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> 
> 






More information about the Users mailing list