Closed GoogleCodeExporter closed 9 years ago
More information is required. If r58 was working and doesn't work any more, it
is a problem with your application, not geoxml3.
What happens if you try to open that "file" with a browser? Did you move it?
Original comment by geocodezip
on 7 Feb 2012 at 2:29
I haven't moved the file. I opened the kml file with a browser, it retrieved a
working file for download.
Where should the xml/kml file to be parse be located? In the same directory as
the geoxml3.js file?
I tried this, but no luck:
var myParser = new geoXML3.parser({map: map});
myParser.parse('@Url.Content("~/Scripts/coverage10.kml")');
I'm using r64, and still same problem.
I believe I'm referring the url correctly as same way is done for javascript
files which run fine.
Original comment by sheldonxbox9
on 7 Feb 2012 at 3:45
> Where should the xml/kml file to be parse be located?
Any known relative path should work.
> In the same directory as the geoxml3.js file?
That would work.
Original comment by geocodezip
on 7 Feb 2012 at 6:37
Original comment by geocodezip
on 22 Feb 2012 at 4:30
I have a similar problem (testing in Firefox 16/Linux). Was using egeoxml.js
(worked fine in localhost environment) and am testing a conversion to geoxml3.
Presently I am doing very simple tests of geoxml3 as a standalone parser
(pending addition of further code to parse the description field). The calling
code:
...
var myParser = new geoXML3.parser({afterParse: parseDesc});
var url = 'http://localhost/maps/sites/tabtest.kml';
myParser.parse(url);
...
where parseDesc is some processing code.
I also tried various relative addresses for the map: './tabtest.kml' and
'tabtest.kml', get same error ('Unable to retrieve tabtest.kml') in all cases.
I know my httpd is working fine because I just tested it with egeoxml.js and
other maps. This is the html header:
-----------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
<title>Test Parse</title>
<script type="text/javascript"
src="http://maps.google.com/maps?file=api&v=3.s&"></script>
<script type="text/javascript" src="./geoxml3.js"></script>
<script type="text/javascript" src="./justparse.js"></script>
</head>
<body ..>
....
</body>
</html>
-------------------
I am completely baffled.
Original comment by kupde...@d.umn.edu
on 7 Dec 2012 at 3:42
Can you give me a link to an example that shows the problem? Or attach all the
files needed to recreate it? Please create a new issue and attach the files to
there, this issue is closed.
Original comment by geocodezip
on 7 Dec 2012 at 4:15
Original issue reported on code.google.com by
sheldonxbox9
on 7 Feb 2012 at 1:14Attachments: