a
This commit is contained in:
parent
6a8eb7b920
commit
f5767cdfd8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user