-
Notifications
You must be signed in to change notification settings - Fork 918
events.map
masashiGMS edited this page Sep 16, 2014
·
2 revisions
This event occurs when you click on the map.
###Code
function onMapInit() {
map.addEventListener(plugin.google.maps.event.MAP_CLICK, onMapClick);
}
function onMapClicked(latLng) {
var map = this;
map.addMarker({
"position": latLng,
"title": "The map was clicked at " + latLng.toUrlValue()
}, function(marker) {
marker.showInfoWindow();
});
}
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