It's the default sheet that's throwing me. It would be nice to be able to choose a different default with the theme property. I was hoping to clone the default css and images directory for each skin I needed (1 for public site, 1 for intranet site) and then just change the reference when setting up the map. So in the theme directory you'd have:
default -> images, styles.css app1 -> images, styles.css app2 -> images, styles.css ... I just thought it strange to set theme: 'theme/app1/styles.css' and see both sheets loaded. Not sure why you'd set theme like this then. Now that I understand I can work with it easily. Thanks again Tim. Steve >>> Tim Schaub <[EMAIL PROTECTED]> 11/29/07 5:41 PM >>> Hey- Steve Lime wrote: > Hi all: Question about a map's theme. My assumption is that one could use > that mechanism to override the default (blue) > styling of OpenLayers. Yet, when I do so I'm seeing (via firebug) both my > theme's style.css and the default style.css being > loaded and as a result the custom styles don't get applied. Am I > misunderstanding the theme concept? If you haven't already, see: http://openlayers.org/dev/examples/custom-style.html If you want to cascade styles, you have to include your stylesheets in a link tag. If you don't do this (or if you use anything other than {theme: null} in your map options), you get a stylesheet added dynamically. This breaks cascading styles - as the default styles might (will likely) get applied after any style declarations you have made in your html or other linked stylesheets. Also, note that not all style related stuff has been pulled out of the code. That is, there are still style declarations in the library - these trump any you have made with css. The skinning of OpenLayers is definitely a work in progress. If there is something specific that you can't control with CSS, please make a ticket. If you're having a different issue, disregard this. Tim > > Steve > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,474f407f272433327367457! > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
