mirror of
https://github.com/medialab-prado/poblados-colonizacion-colonias-penitenciarias.git
synced 2024-12-26 04:21:23 +01:00
Control callback
This commit is contained in:
parent
1ac24f0a57
commit
47d28eb498
1 changed files with 15 additions and 15 deletions
|
@ -109,18 +109,18 @@ $.getJSON("data/zonas.geojson", function(zon_data){
|
|||
onEachFeature: function (feature, layer){
|
||||
layer.bindPopup( "<strong> Nombre: " + feature.properties.Nombre + "</strong><br/>" + "<strong> Tipo: </strong>" + feature.properties.D_Tipo + "<br/>" + "<strong> Estado: </strong>" +feature.properties.D_Estado)
|
||||
}
|
||||
} ).addTo(mymap);
|
||||
});
|
||||
}).addTo(mymap);
|
||||
|
||||
var legend = L.control({position: 'bottomright'});
|
||||
var legend = L.control({position: 'bottomright'});
|
||||
|
||||
legend.onAdd = function (mymap) {
|
||||
legend.onAdd = function (mymap) {
|
||||
var div = L.DomUtil.create('div', 'info legend');
|
||||
div.innerHTML = "<i style='background: #e5f5e0'> </i>Poblados de Colonización <br> Colonias Penitenciarias <br> Embalses";
|
||||
return div;
|
||||
};
|
||||
};
|
||||
|
||||
legend.addTo(mymap);
|
||||
legend.addTo(mymap);
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue