- Home >
- Documentation >
- Layers >
- kmllayer
kmllayer
This function allows to add google.maps.KmlLayer.
You can use this online tool to build your kml file.
Usage
Parameters
- options {object}
- url {string} Url of the kml file
- opts {google.maps.KmlLayerOptions}
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); } } } });