diff --git a/app/views/_tailwind/applications/_map.html.erb b/app/views/_tailwind/applications/_map.html.erb index 46f02db1b..54d930e71 100644 --- a/app/views/_tailwind/applications/_map.html.erb +++ b/app/views/_tailwind/applications/_map.html.erb @@ -1,29 +1,32 @@ <%# TODO: Use the new library loader for google maps. Might make this a little less ugly %> <%# TODO: Show static map and pano when javascript is disabled %> -
-
- x-init="if('google' in window) initialiseBasicMapWithMarker($refs.map)" - x-on:map-loaded.window="initialiseBasicMapWithMarker($refs.map)" - class="w-full xl:w-[528px] sm:h-[528px] aspect-1 h-auto"> - <%= tag.div class: "bg-google-maps-green w-full h-full", - data: { lat: application.lat, lng: application.lng, address: application.address, zoom: 16 }, - "x-ref" => "map" do %> - - <% end %> +<% if application.location %> +
+
+ x-init="if('google' in window) initialiseBasicMapWithMarker($refs.map)" + x-on:map-loaded.window="initialiseBasicMapWithMarker($refs.map)" + class="w-full xl:w-[528px] sm:h-[528px] aspect-1 h-auto"> + <%= tag.div class: "bg-google-maps-green w-full h-full", + data: { lat: application.lat, lng: application.lng, address: application.address, zoom: 16 }, + "x-ref" => "map" do %> + + <% end %> +
+ <%# TODO: Don't show pano if there's no useful streetview available %> +
- -
+<% end %> <% =begin