Repository navigation
Official multi viewport API - Implement per RFC (Stage 2 of 3) - #1380
Conversation
a6e4cbe to
c860a3c
Compare
| this._activateViewport(viewport); | ||
| // } | ||
| this.context.viewports = newViewports; | ||
| this._activateViewport(viewport); |
There was a problem hiding this comment.
Doesn't this trigger layer updates? Then called again in drawLayers?
There was a problem hiding this comment.
Yes, this is an area that has needed improvement since we introduced multi-viewport.
The reason it is here is that there is an issue when no viewport is selected in the layers during an update.
I don't think it is a regression. Updated #1370 to make sure we address after this lands.
|
|
||
| // TODO/xiaoji: This should be merged with the controller's prop constraint system | ||
| export function extractViewportFrom(props) { | ||
| export function extractViewState(props) { |
There was a problem hiding this comment.
This is WebMercatorViewport specific. Should this util be offered by the Viewport/View class?
There was a problem hiding this comment.
Yes good idea. This diff just renames the function to reduce View/Viewport/ViewState confusion.
Updated #1370 to make sure we address after this lands.
* Implement official multi view API * Update examples for official multi viewport API (#1381)
Implements #1370
This is a staged diff (shows differences compared to #1379)