Correcciones en campo mapa

This commit is contained in:
humano 2018-10-09 09:33:15 -05:00
parent 86f1774b3d
commit 941728db85
2 changed files with 16 additions and 8 deletions

View File

@ -15444,7 +15444,7 @@ $multiple=mysqli_result($sql,0,"multiple");
} }
$exif="&exif"; $exif="&exif";
} }
if($zoom =="") { $zoom="12";} if($zoom =="") { $zoom="20";}
$render .= " $render .= "
<div style='position:relative'> <div style='position:relative'>
<div class='input-group'> <div class='input-group'>

View File

@ -2,11 +2,19 @@
<html> <html>
<head> <head>
<meta charset=utf-8 /> <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://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> <style>
body { margin:0; padding:0; } body { margin:0; padding:0; }
#map {width: 100%;height: 280px;} #map {width: 100%;height: 280px;}
@ -18,9 +26,9 @@
<div id='map'></div> <div id='map'></div>
<?php <?php
if ($_REQUEST[lat] !='') {$lat=$_REQUEST[lat];}else {$lat= "-72";} if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST[lon] !='') {$lon=$_REQUEST[lon];}else {$lon= "4";} if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST[zoom] !='') {$zoom=$_REQUEST[zoom];}else {$zoom= "5";} if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "20";}
?> ?>
<script> <script>
@ -59,7 +67,7 @@ function onLocationError(e) {
function ondragend() { function ondragend() {
var m = marker.getLatLng(); var m = marker.getLatLng();
var z = map.getZoom(); var z = map.getZoom();
mapa.value= m.lng+' '+m.lat+' '+z; mapa.value= m.lng+' '+m.lat+' '+m.z;
} }
} }
map.on('locationerror', onLocationError); map.on('locationerror', onLocationError);
@ -91,4 +99,4 @@ function ondragend() {
</body> </body>
</html> </html>