WordPress.org

Ready to get started?Download WordPress

Forums

Simple Google Maps Short Code
[resolved] Turn OFF drag/scroll controls or lock the location? (6 posts)

  1. rynobot
    Member
    Posted 1 year ago #

    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/

  2. rynobot
    Member
    Posted 1 year ago #

    Never mind!
    Answered my own question!

    Thanks Pippin!

  3. bmdesign
    Member
    Posted 1 year ago #

    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?

  4. rynobot
    Member
    Posted 1 year ago #

    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.

  5. bmdesign
    Member
    Posted 1 year ago #

    Great help that has worked perfectly!

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

    Thanks

  6. rynobot
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic