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:
parent
dfb6821a46
commit
ccb043052b
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user