-
Notifications
You must be signed in to change notification settings - Fork 914
KmlOverlay
###Add a KmlOverlay The map.addKmlOverlay() method takes a single overlay options object literal, specifying the initial properties of the kml overlay.
The plugin implements only markers, polylines and polygons in version 1.0.6.
The following fields are available when constructing a ground overlay:
Field Name | Type | Description |
---|---|---|
url | String | The url of the kml file (file path or network url) |
map.addKmlOverlay({
'url': "www/polygon.kml"
}, function(kmlOverlay) {
kmlOverlay.on(plugin.google.maps.event.OVERLAY_CLICK, function(overlay, latLng) {
if (overlay.type == "Polygon") {
overlay.setFillColor("red");
}
});
});
Method | Return value | Description |
---|---|---|
remove() | void | Remove the kml overlay. |
If you get an error, feel free to ask me on the official community or the issue list.
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md
New versions will be announced through the official community. Stay tune!
Feel free to ask me on the issues tracker.
Or on the official community is also welcome!
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md