Skip to content

Instantly share code, notes, and snippets.

@Dexterstat
Created January 13, 2014 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dexterstat/8401007 to your computer and use it in GitHub Desktop.
Save Dexterstat/8401007 to your computer and use it in GitHub Desktop.
Google Maps new KML layer
var kmlUrl = '[url]';
var kmlOptions = {
suppressInfoWindows: true,
preserveViewport: false,
map: theMap
};
var kmlLayer = new google.maps.KmlLayer(kmlUrl, kmlOptions);
kmlLayer.setMap(theMap); // the name of thye map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment