Hi, thanks for the info, it nearly works!!! well, I can get it to display the
text all the time by placing the attribution in the options variable but
that means i cant assign copyrights to each layer! See below.
//I have tried doing it this way as well, but no luck, am I just getting the
syntax wrong?
provincie_04 = new OpenLayers.Layer.WMS("Provinces",
"http://domain/geoserver/wms",
{layers:"provincie_04"},
{options, attribution:
'Provided by Gary'});
//this one displays the text all the time!
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 1219.2140625,
projection: "EPSG:28992",
units: 'm',
*attribution: 'Provided by Gary'*
};
map = new OpenLayers.Map('map', {controls: [
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.OverviewMap()
]
});
//Base Layers
provincie_04 = new OpenLayers.Layer.WMS("Provinces",
"http://www.domain/geoserver/wms",
{layers:"provincie_04"},
options);
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/adding-copyright-text-tp6532522p6534356.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users