I solved this problem by calling a separate function from click event
$("#map_canvas").gmap3({
map: {
options: {
center: { lat: 8.558058925477096, lng: 76.87785568237302 },
zoom: 5
},
events:
{
click: function (map, event, data) {
check(event);
}
}
}
});
function check(event) {
$("#map_canvas").gmap3({
marker:
{
latLng: [event.latLng.lat(), event.latLng.lng()]
}
});
}
thanks god..thank god...