Solved

cross-browser file access problem - javascript / geoxml3 /google maps

Posted on 2012-03-22
1
1,159 Views
Last Modified: 2012-03-26
Short version: code  works fine in Firefox, in chrome/internet explorer i get an error in console 'cannot open file' when trying to load the kml (generated from a php script)

since it works in FF, I don't think my code has a problem, but maybe it requires an addition
 to make it work in other browsers? hmm... im not an expert, any advice to fix the code problem is welcome,
many thanks!

using geoxml3 library
google maps apiv3

reference links:
usage of geoxml lib:  http://erskinelabs.com/cartography-javascript/

files attached to re-create my setup,
demo link: http://unosat-dev.web.cern.ch/unosat-dev/smcsv2/delkmltest.html
geoxml3.js
ProjectedOverlay.js
delkmltest.html
0
Comment
Question by:weaverk
1 Comment
 
LVL 1

Accepted Solution

by:
weaverk earned 0 total points
ID: 37764874
I came accross an example which worked on all browsers, I then compared this code to mine and changed the way I passed the variables when calling the lib, to match the example here. success!
for ref:
http://www.geocodezip.com/geoxml3_test/geoxml3_test_mtrmtrip_polygon_suppressInfoWindows.html

using the library file:
 <script type="text/javascript" src="http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js"></script>

Open in new window

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now