[OpenLayers-Users] Watermarks and attributions

Christopher Schmidt crschmidt at metacarta.com
Wed Feb 10 08:04:04 EST 2010


On Wed, Feb 10, 2010 at 12:18:47PM +0000, Dylan Parry wrote:
> Hi folks,
> 
> I’ve managed to use layer attributions without any problems, but I’m wondering how I am able to style the text that is added to the map, ie. position, font, colour etc. I presume there’s some simple CSS that I can use?

http://openlayers.org/dev/examples/custom-style.html

Look at that, then use

  .olControlAttribution

As your CSS class.

> Secondly, I’d like to be able to add a graphical watermark to the map so that a semi-transparent image is overlaid on the map at all times. Is this possible using OpenLayers, or is this going to be only possible by physically watermarking the map tiles as they are produced on the server?

Use attribution: '<img src=""/>'

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list