this 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/kml 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/
The problem with the GeoXML3 library is the way that Ajax request are handled in the geoXML3.fetchXML function, which is deprecated code and a bit dodgy. If you are using jQuery in you project, you just need to replace this function inside the geoxml3.js file with the following code:
Hope it helps!