Error iterating over the elements
Closed this issue · 0 comments
JePedrosa commented
Good, after iterating on a layer and activating the onclick I realized that later when I zoom on the map it is as if it were saved somewhere and when clicking on an element, it repeats what I have to do so many times As I zoomed, can anyone help me with this?
My code is as follows:
capa.PrepareLeafletMarker = function(leafletMarker, data) {
leafletMarker.setIcon(data.icon);
leafletMarker.on('click', function(){
alert("1")
});
});