Hello, I’m new to Observable and I believe that this question relates to some foundational understanding of how Observable treats class instances and their modification across cells.
I am working with this notebook: Geo Data Explorer 2.0
I am trying to add a Box Select interaction to my map instance.
The implementation looks like this, accross 3 cells:
Select = ol5.interaction.Select //ref library function select = new Select() //create new instance of this interaction map.addInteraction(select) //apply it to my map
I created a smaller demonstration where I define a class and try to update an instance of it: Class Modification Test Cross Cells
In both cases when I try
instance.update(updateValue) the cell returns
Could anyone point me in the right direction or is there documentation that describes what I’m doing wrong?