Open hyperknot opened 6 years ago
Is anyone using this library with MobX?
So far I'm having trouble how can I integrate with the [zoom] array for example. If I do
zoom={mapUIStore.zoom.toJS()}
where mapUIStore.zoom is an observable.array, it doesn't work. By this I mean that
mapUIStore.zoom
observable.array
When [zoom] is used with setState is the state updated behind-the-scenes?
[zoom]
At this point, what do you recommend me to do? Should I just use the native zoomTo and forget about the auto-syncing [zoom] array magic?
zoomTo
I've been using Uber's react-map-gl to apply viewport updates reliably, and then continuing with react-mapbox-gl for its layer components: See #572
Is anyone using this library with MobX?
So far I'm having trouble how can I integrate with the [zoom] array for example. If I do
where
mapUIStore.zoom
is anobservable.array
, it doesn't work. By this I mean thatWhen
[zoom]
is used with setState is the state updated behind-the-scenes?At this point, what do you recommend me to do? Should I just use the native
zoomTo
and forget about the auto-syncing [zoom] array magic?