Remove crossOrigin null option for OpenSeaMap source

This commit is contained in:
Frederic Junod
2016-02-02 13:44:06 +01:00
parent d8330d56a0
commit 44e17c440d
2 changed files with 2 additions and 4 deletions

View File

@@ -3,8 +3,7 @@ layout: example.html
title: Localized OpenStreetMap title: Localized OpenStreetMap
shortdesc: Example of a localized OpenStreetMap map with a custom tile server and a custom attribution. shortdesc: Example of a localized OpenStreetMap map with a custom tile server and a custom attribution.
docs: > docs: >
<p>The base layer is <a href="http://www.opencyclemap.org/">OpenCycleMap</a> with an overlay from <a href="http://www.openseamap.org/">OpenSeaMap</a>. The OpenSeaMap tile server <p>The base layer is <a href="http://www.opencyclemap.org/">OpenCycleMap</a> with an overlay from <a href="http://www.openseamap.org/">OpenSeaMap</a>.
does not support <a href="http://enable-cors.org/">CORS</a> headers.</p> tags: "localized-openstreetmap, openseamap, openstreetmap"
tags: "cors, localized-openstreetmap, openseamap, openstreetmap"
--- ---
<div id="map" class="map"></div> <div id="map" class="map"></div>

View File

@@ -28,7 +28,6 @@ var openSeaMapLayer = new ol.layer.Tile({
}), }),
ol.source.OSM.ATTRIBUTION ol.source.OSM.ATTRIBUTION
], ],
crossOrigin: null,
url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png' url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png'
}) })
}); });