Closed (fixed)
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
OL Behaviors
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2011 at 14:37 UTC
Updated:
22 Dec 2011 at 07:50 UTC
Hi,
I would very much change the Zoombar to only having up-down and not the big bar.
Something like in this map: http://geojavaflex.blogspot.com/2009/11/adding-order-and-delete-capabili...
I try to do this through openlayers.css, but somehow unsuccesfull. This is the piece of code I would like to change (firebug):
element.style {
background-image: url("http://openlayers.org/api/2.10/img/zoombar.png");
height: 209px;
left: 13px;
position: absolute;
top: 81px;
width: 18px;
}
I tried the following for starters to remove the bar seeing the div-id in firebug, but unsuccesfull.
.OpenLayers_Control_PanZoomBar_ZoombarOpenLayers {
//background-image: url("http://openlayers.org/api/2.10/img/zoombar.png");
height: 100px;
left: 13px;
position: absolute;
top: 81px;
width: 14px;
}
How can I get the minimum zoombar please?
Thanks a lot in advance for your reply!
Greetings,
Martijn
Comments
Comment #1
zzolo commentedHey @Summit. Sorry for the delay. Were you able to figure out your issue?
What you need to do is use the Zoom Panel behavior and should get what you want.
Comment #2
summit commentedHi @zzolo, can you explain how I can use the Zoom Panel behaviour please?
Thanks a lot in advance!
greetings, Martijn
Comment #3
zzolo commentedHi @Summit. So, you need to disable the PanZoomBar behavior, and either:
1) Enable the Zoom Panel behavior, as this will be just the Zoom+-.
2) or, Enable the Pan Zoom, as this will be a Zoom +- and the left/right/down/up panning.
I have update the descriptions on these behaviors which should make it more intuitive (hopefully).
Comment #4
nod_