[OpenLayers-Users] how to replace the zoombar

Adam Eskreis aeskreis at gmail.com
Wed Aug 17 19:14:28 EDT 2011


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 <jk.chen at sdl.usu.edu> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110817/ec852528/attachment.html


More information about the Users mailing list