KML does not load
Posted: 22 Jun 2011, 14:08
Hi,
I am trying to use the KML but it does not load. I have the componenent and the plugin installed.
The KML is located there : phocamapskml
The KML file name is in the right field in the setup of the MAP.
The KML loading is set to YES in the parameters of the component.
I am using the plugin in an article like this :
{phocamaps view=map|id=1|kmlfile=1}
The example file that I am using is the first one from Google
http://code.google.com/intl/fr/apis/kml ... l_tut.html
The MAP is displayed but not the info from the KML, I am not using IE.
the code source of the page has this : (name site replaced by xxxxxxxxxxx)
mapPhocaMapPlgPM1 = new google.maps.Map(document.getElementById('phocaMapPlgPM1'), phocaOptionsPlgPM1);
var phocaGeoXmlPlgPM1 = new geoXML3.parser({map: mapPhocaMapPlgPM1});
phocaGeoXmlPlgPM1.parse('http://www.xxxxxxxxxxxx.com/phocamapskml/test.kml');
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1);
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); }
}
I tested my kml file with Google Maps without any issue.
Any idea ?
I am trying to use the KML but it does not load. I have the componenent and the plugin installed.
The KML is located there : phocamapskml
The KML file name is in the right field in the setup of the MAP.
The KML loading is set to YES in the parameters of the component.
I am using the plugin in an article like this :
{phocamaps view=map|id=1|kmlfile=1}
The example file that I am using is the first one from Google
http://code.google.com/intl/fr/apis/kml ... l_tut.html
The MAP is displayed but not the info from the KML, I am not using IE.
the code source of the page has this : (name site replaced by xxxxxxxxxxx)
mapPhocaMapPlgPM1 = new google.maps.Map(document.getElementById('phocaMapPlgPM1'), phocaOptionsPlgPM1);
var phocaGeoXmlPlgPM1 = new geoXML3.parser({map: mapPhocaMapPlgPM1});
phocaGeoXmlPlgPM1.parse('http://www.xxxxxxxxxxxx.com/phocamapskml/test.kml');
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1);
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); }
}
I tested my kml file with Google Maps without any issue.
Any idea ?