- Posts: 53
- Thank you received: 22
Please Log in or Create an account to join the conversation.
kmlLayer = new google.maps.KmlLayer({
url: 'http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml',
map: flightArchive.hybridMap.map
});
kmlLayer.setMap(null);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
// Create the new KML layer from a kml file
var kmlLayer = new L.KML("https://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml", {async: true});
// Wait for the layer to load
kmlLayer.on("loaded", function(e) {
// Center the map onto the area of interest
flightArchive.hybridMap.map.fitBounds(e.target.getBounds());
// Add the KML layer
flightArchive.hybridMap.map.addLayer(kmlLayer);
});
Please Log in or Create an account to join the conversation.