WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
[resolved] Venue map - Directions to/from here? (7 posts)

  1. thelittlestgiant
    Member
    Posted 2 years ago #

    Hey Steven,

    Just getting warmed up on this plugin here. It's great, thanks!

    I've got the venue map on a single event page and it looks perfect. But, when I click on the location marker I expect there to be a pop-up for "directions to/from here" as you'd see on a usual google map. Is that something that's supposed to be there or a setting that can be enabled?

    Maybe I've got something screwy in there...

    Joe

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    No - the google map does just mark the venue location. There are no directions (it would require to know the user's location, for one - and when accessing via non-mobile devices this is usually a very rough estimate).

    It could be possible to set up a shortcode which produces a venue map, complete with directions - but I've not looked into how this might be done. I have also considered introducing a pop-up for the marker with venue details - but found Google's pop-ups rather disappointing.

  3. Axenstar86
    Member
    Posted 1 year ago #

    I'm doing the following:
    I created a Custom Field named "gmaps_url" where I enter the Link to the Address generated on the Google Maps page directly.
    I then call this link in my template by putting the Adress URL field below the map:

    <address><a href="<?php echo get_post_meta($post->ID, 'event_gmaps_url', true); ?>" target="blank" title="Google Maps Link"><?php echo $venue_address['address']; ?><br /><?php echo $venue_address['postcode']; ?></a></address>

    Visitors can just click on the link and follow the directions procedure directly on Google.

  4. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome, thanks for sharing this!

    You could store it as venue meta instead (venue meta data was introduced in 1.4). That would save you manually saving the url for each event, but instead for each venue. You could probably automate this as well.

  5. Axenstar86
    Member
    Posted 1 year ago #

    Storing the gmaps link as venue meta makes it even better, thanks for this tip! And of course, thanks for this nice Plugin!

  6. Umbercode
    Member
    Posted 1 year ago #

    @Axenstar86: Just a tip: that is not how you are supposed to use the address-element. Address is only to be used to markup contact addresses of a document/file author.

  7. Axenstar86
    Member
    Posted 1 year ago #

    Hi Umbercode, thanks for pointing this out, you're absolutely right.
    I'll change this.

    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic