Solved

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

Posted on 2012-03-22
1
1,172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

738 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