maringetxway commited on
Commit
b91bf2f
·
verified ·
1 Parent(s): b41f5ed

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -2
script.js CHANGED
@@ -23,8 +23,8 @@ const hqIcon = L.icon({
23
  // Function to add markers from a dataset
24
  function addMarkers(data, icon) {
25
  data.forEach(entry => {
26
- const lat = parseFloat(entry.latitude || entry.Latitude);
27
- const lng = parseFloat(entry.longitude || entry.Longitude);
28
  const name = entry.name || entry.name || 'Unknown';
29
  const address = entry.address || entry.Address || 'N/A';
30
  const nbPeople = entry.nb_of_people || entry.Nb_of_people || 'N/A';
 
23
  // Function to add markers from a dataset
24
  function addMarkers(data, icon) {
25
  data.forEach(entry => {
26
+ const lat = parseFloat(entry.latitude || entry.latitude);
27
+ const lng = parseFloat(entry.longitude || entry.longitude);
28
  const name = entry.name || entry.name || 'Unknown';
29
  const address = entry.address || entry.Address || 'N/A';
30
  const nbPeople = entry.nb_of_people || entry.Nb_of_people || 'N/A';