Adapt examples to new signature for ol.Attribution

This commit is contained in:
Éric Lemoine
2013-08-30 16:48:25 +02:00
parent 38ab64c3c3
commit 729039ba04
5 changed files with 45 additions and 31 deletions
+5 -4
View File
@@ -51,10 +51,11 @@ xhr.onload = function() {
'http://gpp3-wxs.ign.fr/static/logos/IGN/IGN.gif'
];
var attribution = new ol.Attribution(
'<a href="http://www.geoportail.fr/" target="_blank">' +
'<img src="http://api.ign.fr/geoportail/api/js/latest/' +
'theme/geoportal/img/logo_gp.gif"></a>');
var attribution = new ol.Attribution({
html: '<a href="http://www.geoportail.fr/" target="_blank">' +
'<img src="http://api.ign.fr/geoportail/api/js/latest/' +
'theme/geoportal/img/logo_gp.gif"></a>'
});
var sourceOptions;
var source;