Merge pull request #32 from kleper/patch-21

Update mapa.php
This commit is contained in:
humano 2015-07-10 08:01:18 -05:00
commit 13ec6c08d6

View File

@ -4,9 +4,9 @@
<meta charset=utf-8 /> <meta charset=utf-8 />
<title>Display latitude longitude on marker movement</title> <title>Display latitude longitude on marker movement</title>
<script src="https://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<style> <style>
body { margin:0; padding:0; } body { margin:0; padding:0; }
#map {width: 100%;height: 280px;} #map {width: 100%;height: 280px;}
@ -26,7 +26,7 @@
<script> <script>
var map = L.map('map') var map = L.map('map')
.setView([<?php echo $lon ?>, <?php echo $lat ?>], <?php echo $zoom ?>); .setView([<?php echo $lon ?>, <?php echo $lat ?>], <?php echo $zoom ?>);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
//var lat = window.parent.document.getElementById('lat'); //var lat = window.parent.document.getElementById('lat');
//var lng = window.parent.document.getElementById('lon'); //var lng = window.parent.document.getElementById('lon');