Hey guys, fantastic module by the way. I had a question. We're trying to theme the controls on the map (the zoombar, etc) and running into a brick wall. I saw the page on overriding a preset's theme, but what the attached theme to that seems to suggest is mere image replacement, with no customization for size, position, etc.

The elements for the map are id'ed, (id=OpenLayers.Control.PanZoomBar_203_panright_innerImage, etc) but what makes it especially difficult is that the numbers seem to be changing depending on what presets or maps are added. We made a custom stylesheet and linked to to a preset and it worked awesome, until we added another map display and preset. Then all the numbers changed in the id's, and it broke the stylesheet.

Is there something I'm missing? Say we want to replace the zoombar graphic with one that is a different size, and we need to address that specific element. The only thing we have to go on is a singular id, which contains in it a number that appears to be changing. Could someone chime in with either how this number is generated or how we can address that element? Thanks!

CommentFileSizeAuthor
Screen shot 2011-04-20 at 4.55.22 PM.png121.99 KBjgarbe

Comments

zzolo’s picture

Hi @jgarbe. Yeah, the classes and IDs that OpenLayers produces is a bit rough sometimes, but it's not something we can really change too much of these in this module, at least that I am aware of at the moment.

But, most of the controls usually have some form of a class that should aid with styling. The IDs are for the library to use, more than for styling.

tmcw’s picture

Status: Active » Closed (won't fix)

Upstream: post at openlayers.org if you wish.