Hi, sorry, I wasn´t here last time...
I use the following Code to implement the Toolbar... ------------------------------------------------------------ map = new OpenLayers.Map('map', { maxExtent: new OpenLayers.Bounds(maxExtend_minLON, maxExtend_minLAT, maxExtend_maxLON, maxExtend_maxLAT), restrictedExtent: new OpenLayers.Bounds(Lon2Merc(minlon),Lat2Merc(minlat), Lon2Merc(maxlon),Lat2Merc(maxlat)), numZoomLevels: ZoomLevels, //17, eventListeners: { "zoomend": mapEvent }, maxResolution: 156543, units: 'm', projection: new OpenLayers.Projection("EPSG:900913"), // Kartenprojektion displayProjection: new OpenLayers.Projection("EPSG:4326"), controls: [ new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.NavToolbar() ] }); map.events.register("mousedown", map, mapclick); // THIS doesn´ t work also when i use NavToolbar ------------------------------------------------------------------------------------ Greetings Byte Am 19.02.2010 11:17, schrieb Marc Jansen: > Hi Byte, > > which other controls are added to the map? Are you using controls: [] > within the config object to OpenLayers.Map? > > Regards, > Marc > > > Bytechanger wrote: >> Hi, >> >> when I add the NavToolbar to my map then : >> >> - when I scroll with the mousewheel, the zoom-level steps not 10, 11, 12 >> it steps 10,12,14, ... >> - the mousclick event doesn´t work anymore ! >> >> when I remove the toolbar all this thinks works fine ! >> >> Greetings >> >> Byte >> > -- View this message in context: http://n2.nabble.com/NavToolbar-BUG-ScrollWheel-Zoom-MapClick-tp4596496p4631766.html Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users