Support » Plugin: Event Organiser » [Plugin: Event Organiser] Feature Request: disable scrolling on map embed

  • Resolved jas8522


    Can’t stand when I’m scrolling down a page and my cursor just happens to hover over a map or flash element and scrolling stops or starts causing some other effect I didn’t intend; such as zooming a map!

    I’d like either an option to disable it for map embeds (particularly when using the function to display it on the front-end) or better yet, to simply have it disabled altogether.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Google Maps allow you to do this

    So I’ll be adding in an additional attribute/argument for the map shortcode and eo_get_venue_map() function. You can expect this in 1.6 (due end of October – November ).

    Indeed it does! Sorry, I should have included that, though I’m sure it didn’t take you long to find.

    Sounds great! You rock.

    This will be in 1.6, which is currently in beta testing: (dev Branch).

    The option is available as a shortcode: [eo_venue_map scrollwheel=false] or can be used with the function eo_get_venue_map():

    echo eo_get_venue_map('edinburgh-castle', array('scrollwheel'=>false));

    Other Google option attributes added along with scrollwheel:

    • zoomcontrol
    • rotatecontrol
    • pancontrol
    • overviewmapcontrol
    • streetviewcontrol
    • maptypecontrol
    • draggable
    • maptypeid – (e.g. ‘ROADMAP’, ‘SATELLITE’)

    All but the last take true/false values and default to true. The last accepts a string (see Google map type IDs) and defaults to ‘ROADMAP’.

    There is also ‘tooltip’ option (defaults to false) which displays a tooltip with the venue’s address. The content of this tooltip is filterable using the hook eventorganiser_venue_tooltip.

    Finally multiple venues can be displayed on one map. With the shortcode use a comma delimited string:

    [eo_venue_map venue="slug-1,slug-2"]

    With the function pass an array:

    echo eo_get_venue_map(array('slug-1','slug-2'), array('scrollwheel'=>false));

    Note the array may contain either slugs or IDs (*must* be passed as integers).

    Stephen Harris


    Closing this as 1.6 was released earlier today – you can find out more here:

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Event Organiser] Feature Request: disable scrolling on map embed’ is closed to new replies.