Embed Map

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #954404
    Shaun
    Participant

    I am having a problem getting a custom sized map to embed. The code is being used outside of the loop in a sidebar.

    `
    <?php
    $obj = get_queried_object();
    $post_id = $obj->ID;
    $map = tribe_get_embedded_map($post_id, 310, 211);

    if($map) : ?>

    <div class=”sidebar-map”>
    <?php
    do_action( ‘tribe_events_single_meta_map_section_start’ );
    echo $map;
    do_action( ‘tribe_events_single_meta_map_section_end’ );
    ?>
    </div>

    <?php endif;
    ?>
    `

    It’s weird because $map = tribe_get_embedded_map($post_id, 310, 211) returns code without a height. If I change it to $map = tribe_get_embedded_map($post_id, 310), the default dimensions are used.

    Any thoughts on what I am doing wrong?

    Thanks
    Shaun

    #954780
    George
    Participant

    Hey Shaun,

    We can’t fully support customizations, technically, but I’d be happy to take a quick look at this for you – can you share a link to a page where you’ve tried echoing a Map with the height parameter passed, and then another page with one without the height being passed? We can look at the exact source code of both kinda and try to learn more from that.

    Thanks!
    George

    #984001
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Embed Map’ is closed to new replies.