You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a custom icon function that would display different text based on a dropdown value. The problem is that once an icon was created it would not show new text when the dropdown value changed. So once I was in a certain view the icon would be set and it would not update.
I ended up going through the markercluster code and got it to work by commenting out "this._iconNeedsUpdate = false" in the createIcon function
This works fine for me but I thought it might be nice to have a property that you pass into MarkerCluster that would allow for always updating. Or maybe adding a function that updates all the icons when needed?
The text was updated successfully, but these errors were encountered:
Hi
I made a custom icon function that would display different text based on a dropdown value. The problem is that once an icon was created it would not show new text when the dropdown value changed. So once I was in a certain view the icon would be set and it would not update.
I ended up going through the markercluster code and got it to work by commenting out "this._iconNeedsUpdate = false" in the createIcon function
This works fine for me but I thought it might be nice to have a property that you pass into MarkerCluster that would allow for always updating. Or maybe adding a function that updates all the icons when needed?
The text was updated successfully, but these errors were encountered: