Show map only if they have an address.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 24 Apr 2017 18:55:34 +0000 (14:55 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 24 Apr 2017 18:55:34 +0000 (14:55 -0400)
Some events are getting a default lat lon but don't have an address..

views/front/events/detail.html

index ff9e54e..267f39b 100644 (file)
@@ -24,7 +24,7 @@
                     <div class="row"><!-- .row #3 -->
                         {if $event.locations}
                             <div class="event-google-map small-10 small-centered medium-5 medium-uncentered columns">
-                                {if $event.locations.lat}
+                                {if $event.locations.lat && $event.locations.address}
                                     <div id="eventDetailMap">
                                         <div id="eventDetail-map" title="Click to enlarge">map...</div>
                                         <div id="map-dialog"><div id="map_canvas" style="width:500px; height:400px">Loading...</div></div>