You should check to be sure the styles aren't what is making the image look that way.
Alternatively, you could remake the zoombar from scratch using javascript/html/css. Then you just need to hook up a few events to the Map.zoomTo function, and you'll be good to go. However, this would require advanced knowledge of html/css/javascript, so do not attempt if you aren't a pro. I have done this on several applications and was happier in the end that I didn't waste time trying to mess with the standard OpenLayers zoom bar (as it is very picky about what images you use in it). On Wed, Aug 17, 2011 at 6:55 PM, jk <[email protected]> wrote: > Hi, > > I tried to replace the zoombar to thinner image, but it does not work. > I don't like the current bar which is fat and dark. Replaced the image > (under img) with a thinner one, however, OL continues to display the image > in wider width. > > Can someone give an overview how to do this correctly? > > If I design the image, how many steps should be there? How does OL know? > > Thanks. > > JK > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/how-to-replace-the-zoombar-tp6697543p6697543.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
