mejoras en el responsive de mapero

This commit is contained in:
humano 2019-08-30 11:56:24 -05:00
parent 7a5dc473e1
commit 1724d990b4
2 changed files with 10 additions and 6 deletions

View File

@ -131,7 +131,7 @@ $ids = json_decode($otro_json[0]);
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="librerias/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="librerias/leaflet/css/leaflet-sidebar.css" />
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="librerias/bootstrap/css/bootstrap.min.css" />
<style>
body {
@ -145,6 +145,7 @@ $ids = json_decode($otro_json[0]);
}
</style>
</head>
@ -154,7 +155,7 @@ $ids = json_decode($otro_json[0]);
<div id="sidebar" class="leaflet-sidebar collapsed">
<!-- nav tabs -->
<div class="leaflet-sidebar-tabs">
<div class="leaflet-sidebar-tabs" onmouseover="sidebar.open('home')";>
<!-- top aligned tabs -->
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
@ -203,7 +204,8 @@ $ids = json_decode($otro_json[0]);
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
<script src="librerias/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
<script src="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.css" />
<script>
// standard leaflet map setup
@ -234,8 +236,10 @@ $ids = json_decode($otro_json[0]);
onEachFeature: function(feature, layer) {
layer._leaflet_id = feature.properties.control;
var popupText = feature.properties.description
layer.bindPopup(popupText)
var popupText = L.responsivePopup().setContent(feature.properties.description );
layer.bindPopup(popupText, {
maxWidth: 200
});
layer.bindTooltip(feature.properties.title).openTooltip();
}
});

2
milfs

@ -1 +1 @@
Subproject commit 73beb9f1b77afc07e84d85830a1b5442717856fb
Subproject commit 7015b4c2d2861c889ce5924e11f230f9a908d823