Support » Plugin: Simple Shortcode for Google Maps » Turn OFF drag/scroll controls or lock the location?

  • Resolved rynobot

    (@rynobot)


    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)
  • Thread Starter rynobot

    (@rynobot)

    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?

    Thread Starter rynobot

    (@rynobot)

    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

    Thread Starter rynobot

    (@rynobot)

    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 ‘Turn OFF drag/scroll controls or lock the location?’ is closed to new replies.