Update script.js
Browse files
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.
|
| 27 |
-
const lng = parseFloat(entry.longitude || entry.
|
| 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';
|