This commit is contained in:
KANE LAZENI 2026-05-12 12:16:36 +00:00
parent 6a8eb7b920
commit f5767cdfd8

View File

@ -1,8 +1,6 @@
<?php
$lat = $_GET['latitude'];
$lon = $_GET['longitude'];
echo "Latitude => $lat ; Longitude => $lon";
?>
<!DOCTYPE html>
<html>
@ -14,7 +12,7 @@
<script src="https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.js"></script>
<script>
const lat = 5.3484, lng = -4.0167;
const lat = <?= $lat ?>, lng = <?= $lon ?>;
const map = L.map('map').setView([lat, lng], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);