{"id":91252,"date":"2014-01-13T09:09:23","date_gmt":"2014-01-13T17:09:23","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/how-to-show-map-in-photo-view\/"},"modified":"2014-01-13T16:48:06","modified_gmt":"2014-01-14T00:48:06","slug":"how-to-show-map-in-photo-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/","title":{"rendered":"How to Show Map In Photo View(?)"},"content":{"rendered":"<p>Hi, We decided to drop the map view as we felt it would could be better utilized within the \u2018photo\u2019 view since there is a list view already.<\/p>\n<p>So my Q is how can I get the event pins to show with the maps container displayed in the \u2018photo\u2019 php\/view?<\/p>\n<p>I copied the \u2018Google Map Container\u2019 from the map.php to the photo.php as shown below:<\/p>\n<p>&lt;?php do_action( \u2018tribe_events_before_template\u2019 ); ?&gt;<br \/>\n&lt;!\u2013 Google Map Container \u2013&gt;<br \/>\n&lt;?php tribe_get_template_part( \u2018pro\/map\/gmap-container\u2019 ) ?&gt;<br \/>\n&lt;!\u2013 Tribe Bar \u2013&gt;<br \/>\n&lt;?php tribe_get_template_part( \u2018modules\/bar\u2019 ); ?&gt;<br \/>\n&lt;!\u2013 Main Events Content \u2013&gt;<br \/>\n&lt;?php tribe_get_template_part( \u2018pro\/photo\/content\u2019 ) ?&gt;<br \/>\n&lt;?php do_action( \u2018tribe_events_after_template\u2019 ) ?&gt;<\/p>\n<p>Also within the photo.php, I did the following changes:<\/p>\n<p>&lt;?php if ( !defined(&#8216;ABSPATH&#8217;) ) { die(&#8216;-1&#8217;); } ?&gt;<br \/>\n&lt;?php<br \/>\nglobal $post;<br \/>\n$venue_details = array();<br \/>\nif ($venue_name = tribe_get_meta( &#8216;tribe_event_venue_name&#8217; ) ) {<br \/>\n\t$venue_details[] = $venue_name;<br \/>\n}<br \/>\nif ($venue_address = tribe_get_meta( &#8216;tribe_event_venue_address&#8217; ) ) {<br \/>\n\t$venue_details[] = $venue_address;<br \/>\n}<br \/>\n\/\/ Venue microformats<br \/>\n$has_venue = ( $venue_details ) ? &#8216; vcard&#8217;: &#8221;;<br \/>\n$has_venue_address = ( $venue_address ) ? &#8216; location&#8217;: &#8221;;<br \/>\n ?&gt;<br \/>\n&lt;?php echo tribe_event_featured_image( null, &#8216;medium&#8217; ); ?&gt;<br \/>\n &lt;div class=&#8221;tribe-events-event-details tribe-clearfix&#8221;&gt;<br \/>\n\t&lt;!&#8211; Event Title &#8211;&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_before_the_event_title&#8217; ); ?&gt;<br \/>\n\t&lt;!&#8211; Event Distance &#8211;&gt;<br \/>\n\t&lt;?php echo tribe_event_distance(); ?&gt;<br \/>\n\t&lt;h2 class=&#8221;tribe-events-list-event-title entry-title summary&#8221;&gt;<br \/>\n\t\t<a>&#8221; title=&#8221;&lt;?php the_title() ?&gt;&#8221; rel=&#8221;bookmark&#8221;&gt;<br \/>\n\t\t\t&lt;?php the_title(); ?&gt;<br \/>\n\t\t<\/a><br \/>\n\t&lt;\/h2&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_after_the_event_title&#8217; ); ?&gt;<br \/>\n\t&lt;!&#8211; Event Meta &#8211;&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_before_the_meta&#8217; ); ?&gt;<br \/>\n\t&lt;div class=&#8221;tribe-events-event-meta &lt;?php echo $has_venue . $has_venue_address; ?&gt;&#8221;&gt;<br \/>\n\t\t&lt;!&#8211; Schedule &amp; Recurrence Details &#8211;&gt;<br \/>\n\t\t&lt;div class=&#8221;updated published time-details&#8221;&gt;<br \/>\n\t\t\t&lt;?php if ( ! empty( $post-&gt;distance ) ) : ?&gt;<br \/>\n\t\t\t<strong>[&lt;?php echo tribe_get_distance_with_unit( $post-&gt;distance ); ?&gt;]<\/strong><br \/>\n\t\t\t&lt;?php endif; ?&gt;<br \/>\n\t\t\t&lt;?php echo tribe_events_event_schedule_details(), tribe_events_event_recurring_info_tooltip(); ?&gt;<br \/>\n\t\t&lt;\/div&gt;<br \/>\n\t&lt;\/div&gt;&lt;!&#8211; .tribe-events-event-meta &#8211;&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_after_the_meta&#8217; ); ?&gt;<br \/>\n\t&lt;!&#8211; Event Content &#8211;&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_before_the_content&#8217; ); ?&gt;<br \/>\n\t&lt;div class=&#8221;tribe-events-list-photo-description tribe-events-content entry-summary description&#8221;&gt;<br \/>\n\t\t&lt;?php echo tribe_events_get_the_excerpt() ?&gt;<br \/>\n\t&lt;\/div&gt;<br \/>\n\t&lt;?php do_action( &#8216;tribe_events_after_the_content&#8217; ) ?&gt;<br \/>\n&lt;\/div&gt;&lt;!&#8211; \/.tribe-events-event-details &#8211;&gt;<\/p>\n<p>The map displays in the \u2018photo\u2019 view as expected. The problem is that the event pins do not show on the \u2018photo\u2019 view [They still show in the map view]. I looked thru the \u2018tribe-events-ajax-maps.js\u2019 to see what I needed to do to \u201clink\u201d it up to the \u2018photo\u2019 view and I\u2019m not seeing it.<\/p>\n<p>I am amusing that there is a function (onLoad?) needing to be fired to get the map data [to display the pins] when the user clicks or enters the &#8216;photo&#8217; view page&#8230;?<\/p>\n<p>Any help here would be greatly appreciated.  Thnx.<\/p>\n","protected":false},"template":"","class_list":["post-91252","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Show Map In Photo View(?) -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Show Map In Photo View(?) -\" \/>\n<meta property=\"og:description\" content=\"Hi, We decided to drop the map view as we felt it would could be better utilized within the \u2018photo\u2019 view since there is a list view already. So my Q is how can I get the event pins to show with the maps container displayed in the \u2018photo\u2019 php\/view? I copied the \u2018Google Map [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-01-14T00:48:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/\",\"name\":\"How to Show Map In Photo View(?) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-01-13T17:09:23+00:00\",\"dateModified\":\"2014-01-14T00:48:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Show Map In Photo View(?)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Show Map In Photo View(?) -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/","og_locale":"en_US","og_type":"article","og_title":"How to Show Map In Photo View(?) -","og_description":"Hi, We decided to drop the map view as we felt it would could be better utilized within the \u2018photo\u2019 view since there is a list view already. So my Q is how can I get the event pins to show with the maps container displayed in the \u2018photo\u2019 php\/view? I copied the \u2018Google Map [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/","article_modified_time":"2014-01-14T00:48:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/","name":"How to Show Map In Photo View(?) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-01-13T17:09:23+00:00","dateModified":"2014-01-14T00:48:06+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-to-show-map-in-photo-view\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"How to Show Map In Photo View(?)"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/91252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/91252\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=91252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}