Skip to content

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();
  });
}

Join the official community

New versions will be announced through the official community. Stay tune!

Do you have a question or feature request?

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

Clone this wiki locally