From 37ca0268790501cee2f47912b7c7b986dc41302a Mon Sep 17 00:00:00 2001 From: humano Date: Tue, 7 Apr 2020 07:02:02 -0500 Subject: [PATCH] Mejopras en categorizacion --- iconoclasta/index.php | 19 +++++-------- labmapero.php | 11 ++++---- mapero.php | 65 +++++++++++++++++++++++++++++++++++-------- 3 files changed, 67 insertions(+), 28 deletions(-) diff --git a/iconoclasta/index.php b/iconoclasta/index.php index 358c512..ffbf986 100644 --- a/iconoclasta/index.php +++ b/iconoclasta/index.php @@ -9,7 +9,7 @@ require ('funciones/funciones.php'); require ('../milfs/funciones/funciones.php'); require ("../milfs/funciones/conex.php"); -$xajax->processRequests(); +$xajax->processRequests(); $color_frente= random_color(); $color_fondo= random_color(); @@ -22,20 +22,15 @@ $color_fondo= random_color(); - - printJavascript("../milfs/xajax/"); + + printJavascript("../milfs/xajax/"); // $xajax->debugOn(); //$xajax->statusMessagesOn(); ?> - - - - - "; } -print $css_adicional; +print $css_adicional[0]; ?> "; +} + +print $css_adicional[0]; + ?> + + + -
+
@@ -213,7 +243,10 @@ $ids = json_decode($otro_json[0]); - + + + + @@ -237,10 +270,11 @@ $ids = json_decode($otro_json[0]); pointToLayer: function(feature, latlng) { var smallIcon = new L.Icon({ - iconSize: [50, 50], + iconSize: [70, 70], iconAnchor: [13, 27], popupAnchor: [1, -24], autoPanPadding: [30,30], + className: 'mapIcon', iconUrl: feature.properties.icon.iconUrl @@ -285,6 +319,15 @@ function openMarkerPopup(e){ marker.openPopup(); } +function onMapClick(e) { + var coordenadas =""+e.latlng.lat+"|"+e.latlng.lng; + setCookie('ubicacion',coordenadas, 1); + // alert("You clicked the map at " + e.latlng); + sidebar.close(); +xajax_formulario_embebido_ajax("","","",""); +} + +map.on('click', onMapClick); // add panels dynamically to the sidebar