• Resolved AlexR0

    (@alexr0)


    Hey,

    I don’t see an easy way to customize the JavaScript on the plugin (maybe because i am a newbie). Just need to get the post id after i click on a marker on the map so that i can use it on an ajax modal. I have installed the Geo Mashup Custom plugin. Can you give me a hint of how can i do this ?

    Thank you.

    https://wordpress.org/plugins/geo-mashup/

Viewing 1 replies (of 1 total)
  • Thread Starter AlexR0

    (@alexr0)

    So i followed some guidelines and i created a custom-googlev3.js and used this function

    GeoMashup.addAction( ‘selectedMarker’, function( properties, marker, map ) {
    var objects = GeoMashup.getMarkerObjects( marker );
    if ( objects.length > 0 && GeoMashup.have_parent_access ) {
    // i used window.parent so that i can call the scripts from the iframe parent
    window.parent.ajax_post_modal(objects[0].object_id);
    }
    });

Viewing 1 replies (of 1 total)
  • The topic ‘Get post id in javascript after click on a marker in the map’ is closed to new replies.