Skip to content

Commit 2408451

Browse files
committed
Add coordinates to bike pane
1 parent a0b32ff commit 2408451

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎templates/hfxbikeparking/index.html‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,14 @@ <h3 class="modal-title">Bike Parking Details</h3>
428428
</div>`;
429429
}
430430

431+
if (feature.geometry.type === 'Point') {
432+
const [lng, lat] = feature.geometry.coordinates;
433+
content += `<div class="info-item">
434+
<div class="info-label">Coordinates:</div>
435+
<div class="info-value">${lat.toFixed(5)}, ${lng.toFixed(5)}</div>
436+
</div>`;
437+
}
438+
431439
content += `</div>`;
432440

433441
// Add description/note if available

0 commit comments

Comments
 (0)