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 believe Map would be better suited for the 'features' property of this class than Object. If this property was updated to an instance of Map, we could remove this delete operation as well as the 'featureCount' property.
EDIT: Now that I've had a chance to look more into the use of this class, it appears that the 'features' property is used too often in other files to make this change easily. I'll leave this comment here for Ideas, but I don't think I'll be acting on it for some time.
@tjsangster yeah that would be a possibility, we might need to switch up the drawing architecture at a later point. Right now we heavily rely on the features object for hit-testing and a bunch and keeping track of what's being rendered. But keep the ideas flowing, it'll be good to revisit them.
The Layer class has method
removeFeatureByID(featureID)
which uses thedelete
operation to remove a feature from itsfeatures
array.Delete is slow! Find a better way to store features to improve performance.
The text was updated successfully, but these errors were encountered: