Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29178

    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

    #139963

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google maps mobile pan control?’ is closed to new replies.