This event is fired when you press your finger a few seconds on the map.
name | type | description |
---|---|---|
latLng | LatLng | clicked position |
<div id="map_canvas"></div>
var div = document.getElementById("map_canvas");
var map = plugin.google.maps.Map.getMap(div);
map.on(plugin.google.maps.event.MAP_LONG_CLICK, function(latLng) {
map.addMarker({
position: latLng,
title: latLng,
animation: plugin.google.maps.Animation.DROP
});
});