[OpenLayers-Users] Watermarks and attributions

PhilM pj_maloney at hotmail.com
Wed Feb 10 08:40:35 EST 2010


> 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?

I have also achieved this by creating a custom layer based on
OpenLayers.Layer.TMS. Point this at your required image, set the grid cell
size, and apply the opacity. I have attached the required js.
http://n2.nabble.com/file/n4547912/Watermark.js Watermark.js 
e.g.
new OpenLayers.Layer.Watermark('WM','[path to
image]',{isBaseLayer:false,opacity:0.1,tileSize: new
OpenLayers.Size(400,400)})

Regards
Phil Maloney
-- 
View this message in context: http://n2.nabble.com/Watermarks-and-attributions-tp4547472p4547912.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list