[OpenLayers-Users] Zoom works partialy

Detlef Reichl detlef.reichl at gmx.org
Wed Feb 11 14:16:39 EST 2009


Hi,

i have a strange problem. I have a map, which uses two OpenStreetMap
layers and a Marker layer on top.

With an old version of my code - only simple functions, no OO patterns -
zooming worked like expected. After a redesign to encapsulate it all in
objects, the zoom function behaves very strange.

After I load the map zooming with the scroll wheel, double clicking on
the map and clicking on the "+" of the PanZoomBar doesn't work (also the
registered event handlers are not called), clicking in the PanZoomBar or
on the "-" of it change the zoom level like expected. After the first
zoom, the scroll wheel and the "+" of the PanZoomBar also work. Panning
the map with the mouse works all time and registered event handlers are
also called.

I've tested it with 2.7 and trunk.

The code, that creates the map object is in

http://bitbucket.org/sttmjoc0/osm-pforzheim-unstable/src/tip/slippy-map/js/ow-slippy-map.js

Any ideas?

Cheers, detlef




More information about the Users mailing list