Use simple forms to create attributions in examples

This commit is contained in:
Marc Jansen
2016-03-10 11:14:59 +01:00
parent df4f1c1389
commit 5b43e8a31e
17 changed files with 41 additions and 113 deletions

View File

@@ -21,11 +21,7 @@ var map = new ol.Map({
layers: [
new ol.layer.Image({
source: new ol.source.ImageStatic({
attributions: [
new ol.Attribution({
html: '&copy; <a href="http://xkcd.com/license.html">xkcd</a>'
})
],
attributions: '© <a href="http://xkcd.com/license.html">xkcd</a>',
url: 'http://imgs.xkcd.com/comics/online_communities.png',
projection: projection,
imageExtent: extent