Phil Scadden <p.scadden@...> writes:
>
> On 10/02/2011 2:53 a.m., vrbikdan wrote:
> > Origin null is not
> > allowed by Access-Control-Allow-Origin
> This has nothing to do with the KML and everything to do with the URL
> for KML file. That error is a violation of XHR cross-domain rules when
> it tries to fetch the file. Want to show us the new create layer code
> you are using to fetch the KML?
>
Ok, here is code for add new layer:
var cyklo = new OpenLayers.Layer.GML("cyklo",
'http://dvphoto.xf.cz/dp/linie/cyklo2_ln.kml',
{
format: OpenLayers.Format.KML,
formatOptions: {'extractStyles': true}
});
map.addLayer(cyklo);
Btw. it is not problem only in Chrome, but Firefox too.
Thanks, I'm trying to fetch kml file a few days without any progression :(
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users