WordPress.org

Support

Support » Plugins and Hacks » Simple Google Maps Short Code » [Resolved] Turn OFF drag/scroll controls or lock the location?

[Resolved] Turn OFF drag/scroll controls or lock the location?

  • Is it possible to turn off the drag and scrolling controls?

    When a map takes most of the space on a mobile display, it’s tough to scroll past without moving the location.

    Something like:

    draggable: false,
    zoomControl: false,
    scrollwheel: false,
    disableDoubleClickZoom: true

    Thanks in advance for any reply – I’m a big fan of your plugins!

    http://wordpress.org/plugins/simple-google-maps-short-code/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Never mind!
    Answered my own question!

    Thanks Pippin!

    Hi there. How do I stop the scroll, where do I add this code?

    draggable: false,
    zoomControl: false,
    scrollwheel: false,
    disableDoubleClickZoom: true

    Thanks in advance. Also can I add my own marker rather than the red one?

    I added it to the plugin php file after

    var map_options = {

    Keep in mind – you will need to update this when the plugin is updated.

    Hope that helps.

    Great help that has worked perfectly!

    Do you know if it’s possible to change the marker on the map?

    Thanks

    I would imagine changing the marker would be relatively easy… I’m not sure what you’re going for, but you might be able to change the variable after:

    var marker = new google.maps.Marker({

    Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Turn OFF drag/scroll controls or lock the location?’ is closed to new replies.
Skip to toolbar