Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

615 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