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