I have disabled all the controls on google map , Using following parameters ,
var mapOptions = {
zoom: 15,
center: new google.maps.LatLng(latitude,longitude),
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
draggable: false,
zoomControl: false,
scrollwheel: false,
};
But the user can still zoom in and zoom out for the map using double click. Also there are some popups on map which displays some information about that place. How can i disable double click zoom in and the popups that gives information. Is there is something missed in this settings ?
Update
Finally got solution for disabling popups and links on Google map here.
Here is demo
Call this function when map is finished loading.
function fixInfoWindow() {
var set = google.maps.InfoWindow.prototype.set;
google.maps.InfoWindow.prototype.set = function (key, val) {
if (key === 'map') {
if (!this.get('noSupress')) {
return;
}
}
set.apply(this, arguments);
}
}