crossOrigin defaults to null

This commit is contained in:
Éric Lemoine
2013-03-20 19:24:32 +01:00
parent 7038ac0c81
commit 7949cdaa82
17 changed files with 18 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ var layers = [
new ol.layer.TileLayer({
source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: [new ol.Attribution(
'© ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
@@ -36,6 +37,7 @@ var layers = [
new ol.layer.TileLayer({
source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions: [new ol.Attribution(
'&copy; ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +