developmentseed / developmentseed/lonboard
[BUG] set_view_state no longer moves previously rendered map
- Dominant language
- Python
- Stars
- 964
- Forks
- 54
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Description
## Context
Calling `set_view_state` on a map with a new lat/lon isn't moving a previously rendered map. I've poked around in the code a bit, but it's not jumping out to me where the issue is. I suspect it's the same underlying problem which is causing #1024 and is what [jwardbond is seeing](https://github.com/developmentseed/lonboard/pull/1055#discussion_r2587092364).
## Resulting behaviour, error message or logs
**Describe what happened:**
## Environment
- OS: Windows 11
- Browser: opera
- Lonboard Version: 0.13.0
## Steps to reproduce the bug
cell 1
```py
from lonboard import viz
m = viz(data=[])
m.set_view_state(longitude=-62, latitude=45, zoom=5) # moves map `m` to Nova Scotia
m
```
cell2
```py
m.set_view_state(longitude=-90, latitude=45, zoom=5) # should move map `m` to Wisconsin
# If this cell was run really quickly after cell 1 (as in running a notebook with restart kernel
# and run all cells), map `m` in cell 1 will have moved to wisconsin
# but if I let the map in cell 1 render then run this cell and look at the map displayed in cell 1
# it will still be centered in Nova Scotia
#
# No matter what, if we display the map again here, it is in Wisconsin...
m
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.