forked from qwerty/tupali
mejoras en el responsive de mapero
This commit is contained in:
parent
7a5dc473e1
commit
1724d990b4
14
mapero.php
14
mapero.php
@ -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">
|
<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 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/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>
|
<style>
|
||||||
body {
|
body {
|
||||||
@ -145,6 +145,7 @@ $ids = json_decode($otro_json[0]);
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@ -154,7 +155,7 @@ $ids = json_decode($otro_json[0]);
|
|||||||
<div id="sidebar" class="leaflet-sidebar collapsed">
|
<div id="sidebar" class="leaflet-sidebar collapsed">
|
||||||
|
|
||||||
<!-- nav tabs -->
|
<!-- nav tabs -->
|
||||||
<div class="leaflet-sidebar-tabs">
|
<div class="leaflet-sidebar-tabs" onmouseover="sidebar.open('home')";>
|
||||||
<!-- top aligned tabs -->
|
<!-- top aligned tabs -->
|
||||||
<ul role="tablist">
|
<ul role="tablist">
|
||||||
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
|
<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/leaflet/dist/leaflet.markercluster-src.js"></script>
|
||||||
<script src="librerias/jquery/jquery-2.1.4.min.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 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>
|
<script>
|
||||||
// standard leaflet map setup
|
// standard leaflet map setup
|
||||||
@ -234,8 +236,10 @@ $ids = json_decode($otro_json[0]);
|
|||||||
onEachFeature: function(feature, layer) {
|
onEachFeature: function(feature, layer) {
|
||||||
layer._leaflet_id = feature.properties.control;
|
layer._leaflet_id = feature.properties.control;
|
||||||
|
|
||||||
var popupText = feature.properties.description
|
var popupText = L.responsivePopup().setContent(feature.properties.description );
|
||||||
layer.bindPopup(popupText)
|
layer.bindPopup(popupText, {
|
||||||
|
maxWidth: 200
|
||||||
|
});
|
||||||
layer.bindTooltip(feature.properties.title).openTooltip();
|
layer.bindTooltip(feature.properties.title).openTooltip();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
2
milfs
2
milfs
@ -1 +1 @@
|
|||||||
Subproject commit 73beb9f1b77afc07e84d85830a1b5442717856fb
|
Subproject commit 7015b4c2d2861c889ce5924e11f230f9a908d823
|
Loading…
Reference in New Issue
Block a user