(map: Map)
| 260 | }; |
| 261 | |
| 262 | private _getViews(map: Map) { |
| 263 | if (!this._props.views) { |
| 264 | return getDefaultView(map); |
| 265 | } |
| 266 | // Check if custom views already include a 'mapbox' view |
| 267 | const views = Array.isArray(this._props.views) ? this._props.views : [this._props.views]; |
| 268 | const hasMapboxView = views.some((v: any) => v.id === MAPBOX_VIEW_ID); |
| 269 | if (hasMapboxView) { |
| 270 | return this._props.views; |
| 271 | } |
| 272 | // Add default 'mapbox' view to custom views for consistency with interleaved mode |
| 273 | return [getDefaultView(map), ...views]; |
| 274 | } |
| 275 | |
| 276 | private _updateViewState = () => { |
| 277 | const deck = this._deck; |
no test coverage detected