fixed bugs : Google Maps to OSM

This commit is contained in:
hannes-kl 2018-12-04 20:46:14 +01:00
parent cbd50d9310
commit 0dada8f805
3 changed files with 11 additions and 9 deletions

View file

@ -31,6 +31,13 @@ contact_links:
description: Phone description: Phone
action: Call us action: Call us
--- ---
<% content_for :head do %>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
<% end %>
<%= render '/partials/_about_sub_navbar.*', selected: 'contact' %> <%= render '/partials/_about_sub_navbar.*', selected: 'contact' %>
<h1 class='title is-1 has-text-centered'>Contact us</h1> <h1 class='title is-1 has-text-centered'>Contact us</h1>
<h2 class='subtitle is-4 has-text-centered has-text-weight-light'>bleep bloop</h1> <h2 class='subtitle is-4 has-text-centered has-text-weight-light'>bleep bloop</h1>
@ -122,5 +129,5 @@ contact_links:
<!-- Embedded Google Maps --> <!-- Embedded Google Maps -->
<div class="map-wrapper box"> <div class="map-wrapper box">
<%= render '/partials/_map.erb', location: item[:locationlink] %> <%= render '/partials/_map.erb', location: "Zeus WPI" %>
</div> </div>

View file

@ -13,6 +13,9 @@
<meta name="twitter:data2" value="<%= item[:location] %>" /> <meta name="twitter:data2" value="<%= item[:location] %>" />
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
<% end %> <% end %>
<% if item[:banner] %> <% if item[:banner] %>

View file

@ -1,11 +1,3 @@
<% content_for :head do %>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
<% end %>
<!-- MAPS --> <!-- MAPS -->
<div class="map-wrapper box"> <div class="map-wrapper box">
<div id="map-error" class="is-invisible" style="height:100%;width:100%;position:absolute;left:0;top:0;background-color:#00000066;z-index:1000;color:white;font-size:30px;display:flex;justify-content:center;align-items:center;padding:50px;"> <div id="map-error" class="is-invisible" style="height:100%;width:100%;position:absolute;left:0;top:0;background-color:#00000066;z-index:1000;color:white;font-size:30px;display:flex;justify-content:center;align-items:center;padding:50px;">