Solved

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

Posted on 2012-03-22
1
1,162 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

773 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