Update mapa.php

Cambiando el llamado de librerias para que sean llamadas desde https y de CDN con certificados validos.
This commit is contained in:
Kleper 2015-07-10 08:00:51 -05:00
parent dfb6821a46
commit ccb043052b

View File

@ -4,9 +4,9 @@
<meta charset=utf-8 />
<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>
body { margin:0; padding:0; }
#map {width: 100%;height: 280px;}
@ -26,7 +26,7 @@
<script>
var map = L.map('map')
.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 lng = window.parent.document.getElementById('lon');