a
This commit is contained in:
parent
6a8eb7b920
commit
f5767cdfd8
|
|
@ -1,8 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$lat = $_GET['latitude'];
|
$lat = $_GET['latitude'];
|
||||||
$lon = $_GET['longitude'];
|
$lon = $_GET['longitude'];
|
||||||
|
|
||||||
echo "Latitude => $lat ; Longitude => $lon";
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
@ -14,7 +12,7 @@
|
||||||
<script src="https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
const lat = 5.3484, lng = -4.0167;
|
const lat = <?= $lat ?>, lng = <?= $lon ?>;
|
||||||
const map = L.map('map').setView([lat, lng], 13);
|
const map = L.map('map').setView([lat, lng], 13);
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user