aboutsummaryrefslogtreecommitdiff
path: root/app/views/welcome/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/welcome/index.html.erb')
-rw-r--r--app/views/welcome/index.html.erb6
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 %>