forked from qwerty/milfs
Correcciones en campo mapa
This commit is contained in:
parent
86f1774b3d
commit
941728db85
@ -15444,7 +15444,7 @@ $multiple=mysqli_result($sql,0,"multiple");
|
||||
}
|
||||
$exif="&exif";
|
||||
}
|
||||
if($zoom =="") { $zoom="12";}
|
||||
if($zoom =="") { $zoom="20";}
|
||||
$render .= "
|
||||
<div style='position:relative'>
|
||||
<div class='input-group'>
|
||||
|
20
mapa.php
20
mapa.php
@ -2,11 +2,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset=utf-8 />
|
||||
<title>Display latitude longitude on marker movement</title>
|
||||
<title></title>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
|
||||
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
|
||||
-->
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
|
||||
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
|
||||
crossorigin=""/>
|
||||
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"
|
||||
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
|
||||
crossorigin=""></script>
|
||||
<style>
|
||||
body { margin:0; padding:0; }
|
||||
#map {width: 100%;height: 280px;}
|
||||
@ -18,9 +26,9 @@
|
||||
|
||||
<div id='map'></div>
|
||||
<?php
|
||||
if ($_REQUEST[lat] !='') {$lat=$_REQUEST[lat];}else {$lat= "-72";}
|
||||
if ($_REQUEST[lon] !='') {$lon=$_REQUEST[lon];}else {$lon= "4";}
|
||||
if ($_REQUEST[zoom] !='') {$zoom=$_REQUEST[zoom];}else {$zoom= "5";}
|
||||
if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
|
||||
if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
|
||||
if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "20";}
|
||||
|
||||
?>
|
||||
<script>
|
||||
@ -59,7 +67,7 @@ function onLocationError(e) {
|
||||
function ondragend() {
|
||||
var m = marker.getLatLng();
|
||||
var z = map.getZoom();
|
||||
mapa.value= m.lng+' '+m.lat+' '+z;
|
||||
mapa.value= m.lng+' '+m.lat+' '+m.z;
|
||||
}
|
||||
}
|
||||
map.on('locationerror', onLocationError);
|
||||
|
Loading…
Reference in New Issue
Block a user