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

zzolo’s picture

Hey @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.

summit’s picture

Hi @zzolo, can you explain how I can use the Zoom Panel behaviour please?
Thanks a lot in advance!
greetings, Martijn

zzolo’s picture

Hi @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).

nod_’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.