Control callback

This commit is contained in:
Fernando Blat 2017-06-17 16:16:49 +02:00
parent 1ac24f0a57
commit 47d28eb498

View file

@ -110,7 +110,6 @@ $.getJSON("data/zonas.geojson", function(zon_data){
layer.bindPopup( "<strong> Nombre: " + feature.properties.Nombre + "</strong><br/>" + "<strong> Tipo: </strong>" + feature.properties.D_Tipo + "<br/>" + "<strong> Estado: </strong>" +feature.properties.D_Estado) 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'});
@ -121,6 +120,7 @@ legend.onAdd = function (mymap) {
}; };
legend.addTo(mymap); legend.addTo(mymap);
});
</script> </script>
</body> </body>