tamaño de icono

This commit is contained in:
humano 2020-04-06 21:13:02 -05:00
parent 541a5ba771
commit 5c180454e6

View File

@ -105,6 +105,7 @@ $ids = json_decode($otro_json[0]);
iconSize: [100, 100], iconSize: [100, 100],
iconAnchor: [13, 27], iconAnchor: [13, 27],
popupAnchor: [1, -24], popupAnchor: [1, -24],
className: 'mapIcon',
/*iconUrl: feature.properties.icon.iconUrl*/ /*iconUrl: feature.properties.icon.iconUrl*/
iconUrl: 'https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png' iconUrl: 'https://tupale.co/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png'
@ -140,20 +141,29 @@ $ids = json_decode($otro_json[0]);
<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" />
<?php
$hoja_css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='hoja_css' and opcion = 'hoja_css' and id_empresa = '$id_empresa[0]'") ;
if ($hoja_css[0] ==""){ $hoja_estilo ="<link href='./milfs/css/style.css' rel='stylesheet'>";}
else{ $hoja_estilo ="<link href='$hoja_css[0]' rel='stylesheet'>";}
print $hoja_estilo;
$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$empresa[0]'") ;
if($css_adicional[0] !="") {
$css_adicional ="<style >
$css_adicional[0]
</style>";
}
print $css_adicional;
?>
<style> <style>
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
html, body, #map { html, body, #map {
height: 100%; height: 100%;
} }
</style> </style>
</head> </head>
@ -259,10 +269,11 @@ $ids = json_decode($otro_json[0]);
pointToLayer: function(feature, latlng) { pointToLayer: function(feature, latlng) {
var smallIcon = new L.Icon({ var smallIcon = new L.Icon({
iconSize: [50, 50], iconSize: [70, 70],
iconAnchor: [13, 27], iconAnchor: [13, 27],
popupAnchor: [1, -24], popupAnchor: [1, -24],
autoPanPadding: [30,30], autoPanPadding: [30,30],
className: 'mapIcon',
iconUrl: feature.properties.icon.iconUrl iconUrl: feature.properties.icon.iconUrl