Open agentili opened 7 years ago
Is there any way to change color of layer during the loading??
Sure.
var style = { color: 'green' };
var control = L.Control.fileLayerLoad({ layerOptions: {style: style} }).addTo(map);
control.loader.on('data:loaded', function (e) {
style.color = 'red'; // change to cycle/random colors
});
I have a visualization problem when an user try to load more than 1 layer falling in the same location. As per actual configuration in my web page I'm not able to assign different colors respect to layers loaded.
Is there any way to change color of layer during the loading??
E.g.
Thanks for your answers