diff options
author | Nemael <100dragons@gmail.com> | 2020-10-08 15:15:17 +0200 |
---|---|---|
committer | Nemael <100dragons@gmail.com> | 2020-10-08 15:15:17 +0200 |
commit | 12cd55048f1357a3e3dc384db37b9f4edb6819d7 (patch) | |
tree | 453da67c2d24dcc9eba92440ba7ede846ca5d021 /app/views | |
parent | 2340d4a393a96aa5d766dd7a5ea3448b6f43d031 (diff) | |
download | incommon-map-12cd55048f1357a3e3dc384db37b9f4edb6819d7.tar.gz |
Removed the hand-picked markers because they caused errors
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/welcome/index.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
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 %> |