Garthanos / geoxml

Automatically exported from code.google.com/p/geoxml
1 stars 0 forks source link

Basic Help "Document not found" popup #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copped Sample code and js script to local PC 
2. check KML to local file in code and run
3. Popup box "Document not found"

What is the expected output? What do you see instead?
Experted the side bar to be populated. Got a "Document not found" pop-up 
box 

What version of the product are you using? On what operating system?
Current 11.2March2010

Please provide any additional information below.
using the http://www.dyasdesigns.com/geoxml/mtrmtrip.htm and running from 
Own PC i.e not running local web server

I am learning for a school project many thanks for any help

Original issue reported on code.google.com by sion_ev...@hotmail.com on 12 Mar 2010 at 12:59

GoogleCodeExporter commented 9 years ago
Generally that popup means the path to your kml is wrong in some fashion(could 
be as 
simple as a typo). Additionally if your kml has a network link in it that can 
create
issues because it will try to reference something outside the local context and 
not work. Using a simple relative path is recommended.

what os and browser are you using?, my guess is IE of some flavor (I am 
currently finding 
chrome doesnt want to load local files but FF and IE has no problems on my own 
system 
which I am debugging currently)

The end target is "on the web" rather than sitting on ones local system... 
which doesnt 
mean it shouldnt work locally.

Original comment by lanceala...@gmail.com on 12 Mar 2010 at 2:45

GoogleCodeExporter commented 9 years ago
There is likely to always be limits when running in the local context you will
without a doubt want to get a web site for posting and testing on. And for the 
case
of network links which may come from other domains you will find yourself 
needing a
proxy script similar to on the wiki here.

Original comment by lanceala...@gmail.com on 12 Mar 2010 at 3:31

GoogleCodeExporter commented 9 years ago
I have put the test.kml in the same folder as the index.htm and then Using this 
line 
to get the kml

gml = new GeoXml("gml", mmap, 'test.kml', {sidebarid:"the_side_bar",iwwidth:250 
});

I am using Vista IE8.0 and Chrome 4.0.249.89 I get the same results 
kml is parsed by google earth but not by this I have also tried mtrmtrip.kml 
from 
your web site which works.

Do I need to anything speshal to the kml?

Original comment by sion_ev...@hotmail.com on 12 Mar 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Remember what I said about a network link in the kml?

To do things like a mymaps kml you can either open up find the kml and download 
a
permanent  copy of the actual data... or have it in a web context with proxy.

Original comment by lanceala...@gmail.com on 12 Mar 2010 at 4:21

GoogleCodeExporter commented 9 years ago
We are not allowed to run proxies at school as we were using them to get on to 
facebook.:) I have written a script that get the KML file every 1min and copies 
it to 
the local PC for onward displaying via web site. will this work the same? 

Original comment by sion_ev...@hotmail.com on 12 Mar 2010 at 4:40

GoogleCodeExporter commented 9 years ago
as long as the actual content is local it ought to work.

Original comment by lanceala...@gmail.com on 12 Mar 2010 at 5:29

GoogleCodeExporter commented 9 years ago
Hi, Firstly Many thanks for all your help Lance. I also found if the KML had 
google 
earth extension of the OGC KML 2.2 standard e.g <gx:balloonVisibility> then 
this would 
not parse but thoughts error "Document not found".

Original comment by sion_ev...@hotmail.com on 23 Mar 2010 at 8:23

GoogleCodeExporter commented 9 years ago
gx:baloonVisibility ... that shouldnt be a true "Document not found"... but it 
might
indeed be an xml parsing error... could you provide a sample data that shows 
that
problem and what browser are you using?

Original comment by lanceala...@gmail.com on 23 Mar 2010 at 9:05

GoogleCodeExporter commented 9 years ago
ok I see you were testing in ie8 and chrome... still... show me.

Original comment by lanceala...@gmail.com on 23 Mar 2010 at 9:26

GoogleCodeExporter commented 9 years ago
I also had the same issue, spent 40hrs looking for a solution. I tried to test 
on my local environment but the issue was that my local IIS web server did not 
know how to render the .KML file extension. Once I added the .KML  file 
extension to the MIME types 
(http://www.john.geek.nz/2009/07/serving-google-kml-and-kmz-files-from-iis/)in 
the IIS server, Boom bingo my kml showed up.

If u use Apache server in your local environment you problably will have to add 
the .kml file extension.

Original comment by Israel....@gmail.com on 3 Dec 2012 at 1:34