Thank you for this amazing plugin for leaflet. It's very interesting and helpful.
I have an issue and I don't know how to resolve it. The tag filtering is not working if I put the array in third position of the L.marker function. I would like to add custom icons but it doesn't work with the following code.
var icon_custom = L.icon({iconUrl: element.category_img, iconSize:[38, 45], iconAnchor:[0, 0],popupAnchor:[0, 0]}); var marker = L.marker([element.lat, element.lng],{icon:icon_custom},{ tags: [element.category_name]});
Hello,
Thank you for this amazing plugin for leaflet. It's very interesting and helpful. I have an issue and I don't know how to resolve it. The tag filtering is not working if I put the array in third position of the L.marker function. I would like to add custom icons but it doesn't work with the following code.
var icon_custom = L.icon({iconUrl: element.category_img, iconSize:[38, 45], iconAnchor:[0, 0],popupAnchor:[0, 0]}); var marker = L.marker([element.lat, element.lng],{icon:icon_custom},{ tags: [element.category_name]});
Could you help me with it ?