I am looking for a way to keep my map objects up to date.
F.e. a polyline.
I have an “parent” MVCArray
with some additional information and I am processing that array to pass it as a MVCArray<LatLng>
to the polyline.
But doing it like this stops the polyline from getting updated automatically as only the parent array gets all the updated information.
So I looked into the docs and found MVCArray.notify()
But I do not exactly understand what it does?
Docs only say:
“Notify all observers of a change on this property. This notifies both objects that are bound to the object’s property as well as the object that it is bound to.”
I dont understand which object is being referred to to be honest.
So my question is how does .notify()
work?
Or is there another solution to update the processed data when the parent data gets updated.
val1337 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.