Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Derek Watling
Christopher Schmidt-2 wrote: > > Christopher has not done most of his work on OpenLayers for MetaCarta > for more than a year, and does almost all work for OpenLayers on his own > time. Suggesting how people should spend their free time is rude, and > demonstrates a lack of support for the op

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Arnd Wippermann
return this.div; } Arnd Wippermann -Ursprüngliche Nachricht- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Ivan Grcic Gesendet: Montag, 9. Februar 2009 11:28 An: Derek Watling Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Zoom bar w

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Christopher Schmidt
On Mon, Feb 09, 2009 at 01:23:11AM -0800, Derek Watling wrote: > > Thanks Ivan > > I don't really want to start hacking the code because when the next version > is released I will have to remember to go and re-hack it. Hopefully > Christopher and the excellent team at MetaCarta will pick up on th

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Ivan Grcic
hey, was just trying to point out that u can make it by urself by looking into PanZoomBar class ;) just take out everything related to buttons, rename file into ZoomBar.js, and change CLASS_NAMEshould work... (or maybe to add one option inside existing PanZoomBar, something like showPanButton

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Derek Watling
Thanks Ivan I don't really want to start hacking the code because when the next version is released I will have to remember to go and re-hack it. Hopefully Christopher and the excellent team at MetaCarta will pick up on this and implement a "ZoomBar" control in a future version (wink, wink, nudge

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-09 Thread Ivan Grcic
Hi, well the quickest hack would be to go inside \lib\OpenLayers\Control\PanZoomBar.js and comment out following: //this._addButton("panup", "north-mini.png", centered, sz); //this._addButton("panleft", "west-mini.png", px, sz); //this._addButton("panright", "east-mini.png", px.add(wposition, 0),

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-08 Thread Derek Watling
Andreas Hocevar-2 wrote: > > Why not just use OpenLayers.Control.ZoomPanel? > "ZoomPanel" gives the ZoomIn, ZoomOut and ZoomMaxExtent and is still offset for space for the Pan arrows. What I am looking for would be something like "ZoomBar" which isn't available at the moment. http://n2.nabble

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-07 Thread Andreas Hocevar
Hi, On Tue, Feb 3, 2009 at 1:27 PM, Derek Watling wrote: > > I have come up with my own solution. Is there a better way of doing this? Why not just use OpenLayers.Control.ZoomPanel? Regards, Andreas. > var panZoomBar = new OpenLayers.Control.PanZoomBar(); > map.addControl(panZoomBar); > for (v

Re: [OpenLayers-Users] Zoom bar without pan controls

2009-02-03 Thread Derek Watling
I have come up with my own solution. Is there a better way of doing this? var panZoomBar = new OpenLayers.Control.PanZoomBar(); map.addControl(panZoomBar); for (var p = 0; p < 4; p++) { panZoomBar.buttons[p].style.display = 'none';// Don't dispaly panning buttons } panZoomBar.div.styl

[OpenLayers-Users] Zoom bar without pan controls

2009-02-03 Thread Derek Watling
Is it possible to have the Zoom Bar control without the Pan arrows? -- View this message in context: http://n2.nabble.com/Zoom-bar-without-pan-controls-tp2262405p2262405.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ User