developmentseed / openlayers_plus

Additional tools and behaviors for OpenLayers.
63 stars 65 forks source link

Openlayers Plus tooltips #14

Open Yanni opened 13 years ago

Yanni commented 13 years ago

Is there a way to make the tooltips text appear on a white background? The text gets lost on top of the map detail and other markers and so is barely legible. I'm hoping it is possible to add a white background or failing that, to change the color of the text.

I am by no means an expert on programming, so if there is a place in openlayers_plus_behavior_tooltips.js that I need to go to do this, instructions for a dumby would be much appreciated.

Thank you! Yanni

tmcw commented 13 years ago

You'll need to style the tooltips - it should just be some CSS in your theme, something like

.openlayers-tooltip {
  background-color:#fff;
  }

Or similar. See the tooltip code for the classes to style from.