[OpenLayers-Users] Re: adding KML file

2011-02-16 Thread vrbikdan
> Web security issues make it increasingly difficult to create a "web > application" that ISNT a web application. Ie with local files. And even > harder to mix web content with non-web content. I investigated this very > thoroughly when looking at a means to provide an OS-neutral browser to a >

Re: [OpenLayers-Users] Re: adding KML file

2011-02-15 Thread Phil Scadden
Web security issues make it increasingly difficult to create a "web application" that ISNT a web application. Ie with local files. And even harder to mix web content with non-web content. I investigated this very thoroughly when looking at a means to provide an OS-neutral browser to a 1TB datap

[OpenLayers-Users] Re: adding KML file

2011-02-15 Thread vrbikdan
Phil Scadden writes: > So why is it KML at all? If this application has to be a web application > (and it sounds from earlier comments that perhaps it is actually meant > best as a local desktop), then you have to beat the problem of > minimising data transfer. Using a WMS server and convertin

Re: [OpenLayers-Users] Re: adding KML file

2011-02-13 Thread Phil Scadden
> Yes, I know, that kml file is too big, but I don't know, how I can make it > lighter. I need to add some more kml files and one GeoTiff, I think, so it > will be really bad, will not? Do you have some ideas, how I could do it > better? But maybe it is another topic too. So why is it KML at all?

[OpenLayers-Users] Re: adding KML file

2011-02-13 Thread vrbikdan
> Below some code to show how you can accomplish your task. You have to use > the projection sphericalMercator, to get your features at the right place. Thanks a lot! After few hours kml layer is in right place :). But I have a problem with overview map and coordinates which I see after click on

[OpenLayers-Users] Re: adding KML file

2011-02-11 Thread Arnd Wippermann
Hi, Below some code to show how you can accomplish your task. You have to use the projection sphericalMercator, to get your features at the right place. Both your kml files are in projection EPSG:4326. OpenLayers is able to reproject vector data from EPSG:4326 (WGS84) to EPSG:900913 (sphericalMe

Re: [OpenLayers-Users] Re: adding KML file

2011-02-10 Thread Phil Scadden
> So do You think, that it should be problem? Yes I have all files (html, css, > js) > in my computer, only kml file I have on server now because when I had all > files only in computer, I had problem with cross origin request (I wrote it > before). I would like to paste other files to the server

AW: [OpenLayers-Users] Re: adding KML file

2011-02-10 Thread Arnd Wippermann
Gesendet: Donnerstag, 10. Februar 2011 16:09 An: openlayers-users@lists.osgeo.org Betreff: [OpenLayers-Users] Re: adding KML file Charles Galpin writes: > > Did you try it?  This has been the issue all along. All the files need > to come from the same server/port or you hit browser

[OpenLayers-Users] Re: adding KML file

2011-02-10 Thread vrbikdan
Charles Galpin writes: > > Did you try it?  This has been the issue all along. All the files need to > come from the same server/port or you hit browser security restrictions. > If your kml is coming from http://dvphoto.xf.cz/ then load your html from http://dvphoto.xf.cz/some/where.html > >

Re: [OpenLayers-Users] Re: adding KML file

2011-02-10 Thread Charles Galpin
Did you try it? This has been the issue all along. All the files need to come from the same server/port or you hit browser security restrictions. If your kml is coming from http://dvphoto.xf.cz/ then load your html from http://dvphoto.xf.cz/some/where.html hth charles On Feb 10, 2011, at 5:08

[OpenLayers-Users] Re: adding KML file

2011-02-10 Thread vrbikdan
l.s.borges writes: > var layerKml = new OpenLayers.Layer.Vector("KML",{ > strategies: [new OpenLayers.Strategy.Fixed()], > protocol: new OpenLayers.Protocol.HTTP({ > url: "http:/lines.kml", > format: new OpenLayers.Format.KML > }) > }); No, still the same problem :( __

Re: [OpenLayers-Users] Re: adding KML file

2011-02-10 Thread l.s.borges
Try this way: var layerKml = new OpenLayers.Layer.Vector("KML",{ strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: "http:/lines.kml", format: new OpenLayers.Format.KML }) }); Em 10/02/2011 08:08, vrbikdan < vrbik...@gmail.com > escreveu:Phil Scadde

[OpenLayers-Users] Re: adding KML file

2011-02-10 Thread vrbikdan
Phil Scadden writes: > > Just another thought. Your html file is ALSO on the server ?(you arent > trying to have a local file accessing a remote server file?). So do You think, that it should be problem? Yes I have all files (html, css, js) in my computer, only kml file I have on server now

Re: [OpenLayers-Users] Re: adding KML file

2011-02-09 Thread Phil Scadden
Just another thought. Your html file is ALSO on the server ?(you arent trying to have a local file accessing a remote server file?). You can get away with this for WMS but I dont think so for gml. In everything except Chrome you should be able to get away with local html accessing kml is same d

Re: [OpenLayers-Users] Re: adding KML file

2011-02-09 Thread Phil Scadden
Well that looks right. However, the error message relates to attempted execution of offsite code. What error do get with firebug? Are you absolutely sure it is this layer causing issue? Notice: This email and any attachments are confidential. If received in error please destroy and immediately

[OpenLayers-Users] Re: adding KML file

2011-02-09 Thread vrbikdan
Phil 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 fet

Re: [OpenLayers-Users] Re: adding KML file

2011-02-09 Thread Phil Scadden
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 c

[OpenLayers-Users] Re: adding KML file

2011-02-09 Thread vrbikdan
Charles Galpin writes: > > Dan, I think you understand correctly, but unless someone else chimes in, I'm pretty sure this is your only choice. The good news is that it's very easy to run your own web server (and for anyone you distribute your cd to). Check out > > http://portableapps.com/apps