WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Latitude/Longitude Placeholders? (16 posts)

  1. eliasen
    Member
    Posted 2 years ago #

    Did I completely miss it somewhere, or can't I pull the coordinates of the LOCATION from somewhere - besides from deep down in the database?

    /E

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    atm that's it, more map features is on the todo list

  3. eliasen
    Member
    Posted 2 years ago #

    Thx, Marcus. It's almost (to me, that is) as important as the 12/24H! ;-) Just kidding. ;-)

  4. debsch
    Member
    Posted 2 years ago #

    Yes - Can I add also that the ability to INPUT coordinates on the 'add event' form would be very useful, especially for people in rural areas.

    A few places here are either not found on Google maps (because it's on a new street or a street name known only to locals) or are placed incorrectly on Google maps.

    Being able to input coordinates would solve that issue and mark EXACTLY where the function/event is being held.

  5. eliasen
    Member
    Posted 2 years ago #

    Agree, debsch! Not to mention, that a lot of festivals has their parking/entrance etc. at places, which is away from paved roads (hence not on GM). Furthermore, it opens up for an opportunity to use the data in other GM-plugs. E.g., I badly need mashup in my solution.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    I have to check maps out for an IE conflict, and this is well overdue, so maybe I can squeeze this in for the next update.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    guess what, i looked at the API again and turns out this was quite easy. I got excited :)

    check out the dev version and try editing a location. markers are now draggable!

  8. eliasen
    Member
    Posted 2 years ago #

    Hmmm! Installed the dev, but I can't drag the marker.

  9. localseoconsultants
    Member
    Posted 2 years ago #

    Me neither.

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    probably because i got too excited and forgot to update the trunk :\ oops! try now, it's there for sure

  11. eliasen
    Member
    Posted 2 years ago #

    Well, I still can't drag the marker. Strange. And it says 5.1.3.2, so the update is rolled in.

  12. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    try refreshing your browser, might be because your js file isn't refreshed (happened to me first time)

  13. localseoconsultants
    Member
    Posted 2 years ago #

    Yeeees, there it is! Think with this feature you make a lot of people quite happy...

  14. eliasen
    Member
    Posted 2 years ago #

    Nice, Marcus. Will the #_LOCATIONLONGITUDE and #_LOCATIONLATITUDE placeholders also find their way to the next release? :-)

  15. agelonwl
    Member
    Posted 2 years ago #

    Try pasting these to your theme functions.php

    add_filter('em_location_output_placeholder','my_em_location_latitude_placeholders',1,3);
    function my_em_location_latitude_placeholders($replacement, $EM_Location, $result){
        global $wp_query, $wp_rewrite;
    
        switch( $result ){
    	case '#_LOCATIONLATITUDE':
    		$replacement = $EM_Location->location_latitude;
    		break;
    	} 
    
        return $replacement;
    }
    
    add_filter('em_location_output_placeholder','my_em_location_longitude_placeholders',1,3);
    function my_em_location_longitude_placeholders($replacement, $EM_Location, $result){
        global $wp_query, $wp_rewrite;
    
        switch( $result ){
    	case '#_LOCATIONLONGITUDE':
    		$replacement = $EM_Location->location_longitude;
    		break;
    	} 
    
        return $replacement;
    }
  16. eliasen
    Member
    Posted 2 years ago #

    Oh yeah! Sweet, agelonwl! Maybe I should consider digging into coding a bit more. Thanks a lot. That really saved me some trouble. Currently I'm implementing a "Navigate to..."-button on each event for TomTom and Garmin devices. That's why it's a tad more easy with lat/lon. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic