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