- Added comprehensive comments explaining GeoJSON format [longitude, latitude, elevation] - Added debug logging to verify coordinate extraction and marker placement - Clarified variable extraction from coords array with inline comments - Improved console.log to explicitly label lat and lon values - Code correctly uses Leaflet's expected [latitude, longitude] format for markers The coordinate handling is correct per GeoJSON and Leaflet standards: - GeoJSON provides: [lon, lat, elevation] - Code extracts: lat = coords[1], lon = coords[0] - Leaflet receives: L.marker([lat, lon]) which is [latitude, longitude]pull/106/head
parent
0e023978d3
commit
882b6f5996
Loading…
Reference in new issue