Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

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

    Thread Starter eliasen

    (@eliasen)

    Thx, Marcus. It’s almost (to me, that is) as important as the 12/24H! πŸ˜‰ Just kidding. πŸ˜‰

    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.

    Thread Starter eliasen

    (@eliasen)

    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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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!

    Thread Starter eliasen

    (@eliasen)

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

    Me neither.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

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

    Thread Starter eliasen

    (@eliasen)

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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

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

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

    Thread Starter eliasen

    (@eliasen)

    Nice, Marcus. Will the #_LOCATIONLONGITUDE and #_LOCATIONLATITUDE placeholders also find their way to the next release? πŸ™‚

    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;
    }
    Thread Starter eliasen

    (@eliasen)

    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. πŸ™‚

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: Events Manager] Latitude/Longitude Placeholders?’ is closed to new replies.