[OpenLayers-Users] problems with ol 2.11 and Cross

Peter Freimuth peter.freimuth at blackbridge.com
Tue Sep 2 08:35:32 PDT 2014


Hi Arndt,
We applied your recommended changes and the tile cache service provider in addition sets now a corresponding header flag as well and now everything works nicely. Thanks a lot for your input and advice.
Kind regards,
Peter

From: Arnd Wippermann [mailto:arnd.wippermann at web.de]
Sent: Sunday, August 31, 2014 5:43 PM
To: Peter Freimuth
Cc: openlayers-users at lists.osgeo.org
Subject: AW: [OpenLayers-Users] problems with ol 2.11 and Cross

from
https://github.com/openlayers/openlayers/blob/master/notes/2.12.md

for Version 2.12

Especially when working with custom OSM tilesets from servers
that do not send Access-Control-Allow-Origin headers, it is
now necessary to configure the layer with

tileOptions: {crossOriginKeyword: null}

Perhaps it is something similar.

Arnd

________________________________
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Peter Freimuth
Gesendet: Freitag, 29. August 2014 08:40
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] problems with ol 2.11 and Cross
Hi,
we have a problem with a OSM tile service in Openlayers 2.11 which shall replace the google background map for an application in china as google map does not work. As the App is running with https we needed a https enabled tile service and received it from a german service provider. But in this application the Tile Service doesn't work due to the error:
Image from origin 'https://tile.geofabrik.de' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://eyefind-ag-cn.blackbridge.com' is therefore not allowed access

We can see the tiles being successfully loaded from the tile service in firebug but in the map we see only a bunch of broken image links. Its a standard OL OSM layer that works fine with outer test applications.
Any hint on what might cause this problem is very, very welcome.
Kind regards,
Peter


BlackBridge AG | Sitz Berlin | Amtsgericht Charlottenburg - Registergericht | HRB 152785 | Aufsichtsratsvorsitzender: David Westwood | Vorstand: Ryan Johnson
________________________________
[Image removed by sender.]<http://www.avast.com/>


Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus<http://www.avast.com/> Schutz ist aktiv.


BlackBridge AG | Sitz Berlin | Amtsgericht Charlottenburg - Registergericht | HRB 152785 | Aufsichtsratsvorsitzender: David Westwood | Vorstand: Ryan Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140902/a6835142/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140902/a6835142/attachment.jpg>


More information about the Users mailing list