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