1. Home >
  2. Documentation >
  3. Layers >
  4. kmllayer
 

kmllayer

This function allows to add google.maps.KmlLayer.

You can use this online tool to build your kml file.

Usage

Parameters

Example

$("#test").gmap3({ 
  map:{
    options:{ 
      center:{lat: 40.65,lng: -73.95}, 
      zoom: 12
    }
  },
  kmllayer:{
    options:{
      url: "http://gmap3.net/kml/rungis-desc.kml",
      opts:{
        suppressInfoWindows: true
      }
    },
    events:{
      click: function(kml, event){
        alert(event.featureData.description);
      }
    }
  }
});
Close