Search code examples
javascriptmapsgeocodingopenlayers

Customize OpenLayers Control


How can I easily customize OpenLayers map controls? Or at least, how can I minimize the controls' height?

Thank you.

PS. Is there any CSS override?


Solution

  • Take a look here - http://geojavaflex.blogspot.com/ I am in the process of showing how to do an involved customization of the LayerSwitcher. This might give you ideas on how to do what you are after.

    There is a map on the page that shows how the control works, and subsequent posts will discuss the code in detail.

    If you are just interested in code see the source of the page and look for the link to CustomLayerSwitcher.js for the customized version of the switcher.