From 12cd55048f1357a3e3dc384db37b9f4edb6819d7 Mon Sep 17 00:00:00 2001 From: Nemael <100dragons@gmail.com> Date: Thu, 8 Oct 2020 15:15:17 +0200 Subject: Removed the hand-picked markers because they caused errors --- app/views/welcome/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index a1cc88b..9873194 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -27,7 +27,7 @@ zoomOffset: -1, accessToken: 'pk.eyJ1IjoibmVtYWVsIiwiYSI6ImNrZzBrYjBudTB3bnMyenFmNWtrN3h3bmMifQ.Rkeyhm-9iIQOV7NAMA5LaA' }).addTo(mymap); - var marker = L.marker(<%= [res.feature["geometry"]["coordinates"][1],res.feature["geometry"]["coordinates"][0]]%>).addTo(mymap); + //var marker = L.marker(<%= [res.feature["geometry"]["coordinates"][1],res.feature["geometry"]["coordinates"][0]]%>).addTo(mymap); var marker = L.marker([50.850, 4.351]).addTo(mymap); //CONTINUER AVEC LES WHILE ET CONDITIONS, @resources ne contient que 25 elements (lié au nombre d'élément par page?) //OU PLUTOT UTILISER POSTGRES POUR FAIRE DES REQUESTES SUR @resources @@ -35,8 +35,8 @@ <% i = 0 while i < 25 if @resources[i] != nil%> - var marker = L.marker(<%= [@resources[i].feature["geometry"]["coordinates"][1],@resources[i].feature["geometry"]["coordinates"][0]]%>).addTo(mymap); - console.log('<%= @resources[i].feature["properties"]["name"] %>'); + //var marker = L.marker(<%= [@resources[i].feature["geometry"]["coordinates"][1],@resources[i].feature["geometry"]["coordinates"][0]]%>).addTo(mymap); + //console.log('<%= @resources[i].feature["properties"]["name"] %>'); console.log('<%= @resources[i].feature["geometry"]["coordinates"] %>'); count += 1 <% end %> -- cgit v1.2.3