Arreglando coasa del mapa

This commit is contained in:
kleper 2016-11-27 10:28:59 -05:00
parent 14d9bd59dc
commit 74e89340f3

View File

@ -7,7 +7,7 @@ require ('funciones/funciones.php');
require ("funciones/conex.php");
require_once ('includes/markdown.php');
//require ('funciones/convert.php');
$xajax->processRequests();
$xajax->processRequests();
if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];}
$formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ;
$agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ;
@ -47,8 +47,8 @@ background:rgba(255,255,255,1) ;
.panel-map{
max-width: 970px;
}
}
@media (min-width: 800px) {
.panel-map{
@ -56,7 +56,7 @@ background:rgba(255,255,255,1) ;
}
}
.leaflet-popup-content { width:600px !important; }
#map { position:absolute; top:0; bottom:0; width:100%; }
@ -69,7 +69,7 @@ html {
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
padding: 0; margin: 0;
padding: 0; margin: 0;
}
@ -90,9 +90,9 @@ body > .container {
bottom: 3px;
width: 95%;
margin: 0 auto;
height: 120px;
/* Set the fixed height of the footer here */
z-index: 999999;
@ -104,10 +104,10 @@ body > .container {
width: 90%;
height: 120px;
overflow-x: scroll;
}
code {
@ -128,8 +128,8 @@ code {
<!-- <link rel="points" type="application/json" href="json.php?id=<?php echo $_REQUEST["id"] ?>"> -->
</head>
<body>
<div id='map'>
<div id='map'>
<?php $categorias = lista_categorias($_REQUEST['id'],'','') ;
if($categorias !="") {
@ -140,10 +140,10 @@ code {
$categorias
</div></div>
</div>";
}else{
}
echo $pie;
?>
@ -159,7 +159,7 @@ var geoJson = [ <?php echo imprime_geojson("$_REQUEST[id]","$_REQUEST[id2]","$pl
var myLayer = L.mapbox.featureLayer()
.setGeoJSON(geoJson)
.addTo(map);
myLayer.on('layeradd', function(e) {
var marker = e.layer,
feature = marker.feature;
@ -175,14 +175,14 @@ myLayer.on('layeradd', function(e) {
marker.setIcon(L.icon(feature.properties.icon));
});
map.fitBounds(myLayer.getBounds());
myLayer.setGeoJSON(geoJson);
</script>
<?php echo mapa_ficha("$_REQUEST[id]");?>
<!-- Modal -->
@ -191,16 +191,16 @@ myLayer.setGeoJSON(geoJson);
<div class='modal-content'>
<div class='modal-header' >
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button>
<h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4>
<!-- <h4 class='modal-title' id='myModalLabel_info'><div id='titulo_modal'></div></h4> -->
</div>
<div class='modal-body'>
<div id='muestra_form'></div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>