Hello Kriesi team,
How can i add pan control on google maps widget mobile view?
P.S i don´t want to use external plugin.
Thanks
Elson
Hey,
Edit framework > php > class-framework-widgets.php, find this code on line 1278:
var myOptions = {
zoom:".$zoom.",
mapTypeControl:true,
mapTypeId:google.maps.MapTypeId.".$type.",
mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl:true,
navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},
center:latlng
};
Replace it with:
var myOptions = {
zoom:".$zoom.",
mapTypeControl:true,
mapTypeId:google.maps.MapTypeId.".$type.",
mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl:true,
navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},
center:latlng,
panControl:true
};
I don’t think it is that easy to hide it or show it only on mobile view.
Regards,
Ismael