Skip to content

Commit 9250930

Browse files
committed
Updates
1 parent f4a6f76 commit 9250930

3 files changed

Lines changed: 30 additions & 20 deletions

File tree

example/three/pmtiles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ function init() {
133133
tiles.registerPlugin( new UpdateOnChangePlugin() );
134134
tiles.registerPlugin( new TilesFadePlugin() );
135135
tiles.registerPlugin( new GeneratedSurfacePlugin( {
136-
center: true,
137136
shape: 'ellipsoid',
138137
} ) );
139138
tiles.registerPlugin( new ImageOverlayPlugin( {

src/core/renderer/API.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,16 @@ tryRunJobs(): void
631631
Immediately attempts to dequeue and run pending jobs up to `maxJobs` concurrency.
632632

633633

634+
### .flush
635+
636+
```js
637+
flush( item: any ): Promise<any> | any
638+
```
639+
640+
Immediately runs the callback for the given item, removing it from the queue.
641+
Does nothing if the item is not queued.
642+
643+
634644
### .scheduleJobRun
635645

636646
```js
@@ -761,6 +771,23 @@ readonly loadProgress: number
761771
Fraction of tiles loaded since the last idle state, from 0 (nothing loaded) to 1 (all loaded).
762772
763773
774+
### .optimizedLoadStrategy
775+
776+
```js
777+
optimizedLoadStrategy: boolean = true
778+
```
779+
780+
Enables an optimized tile loading strategy that loads only the tiles
781+
needed for the current view, reducing memory usage and improving initial load times.
782+
Tiles are loaded independently based on screen-space error without requiring all parent
783+
tiles to load first. Prevents visual gaps and flashing during camera movement.
784+
785+
Based in part on [Cesium Native tile selection](https://cesium.com/learn/cesium-native/ref-doc/selection-algorithm-details.html).
786+
787+
> [!WARNING]
788+
> This option has been deprecated and will be removed in upcoming releases. The "optimized
789+
> load strategy" will be the only option with "loadSiblings" and "loadAncestors" as toggles.
790+
764791
### .rootTileset
765792
766793
```js
@@ -894,25 +921,6 @@ maxDepth: number = Infinity
894921
Maximum depth in the tile hierarchy to traverse. Tiles deeper than this are skipped.
895922
896923
897-
### .optimizedLoadStrategy
898-
899-
```js
900-
optimizedLoadStrategy: boolean = false
901-
```
902-
903-
**Experimental.** Enables an optimized tile loading strategy that loads only the tiles
904-
needed for the current view, reducing memory usage and improving initial load times.
905-
Tiles are loaded independently based on screen-space error without requiring all parent
906-
tiles to load first. Prevents visual gaps and flashing during camera movement.
907-
908-
Based in part on [Cesium Native tile selection](https://cesium.com/learn/cesium-native/ref-doc/selection-algorithm-details.html).
909-
910-
> [!WARNING]
911-
> Setting is currently incompatible with plugins that split tiles and on-the-fly generate and
912-
> dispose of child tiles including the `ImageOverlayPlugin` `enableTileSplitting` setting,
913-
> `QuantizedMeshPlugin`, & `ImageFormatPlugin` subclasses (XYZ, TMS, etc). Any tile sets
914-
> that share caches or queues must also use the same setting.
915-
916924
### .loadSiblings
917925
918926
```js

src/core/renderer/tiles/TilesRendererBase.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ export class TilesRendererBase {
391391
* tiles to load first. Prevents visual gaps and flashing during camera movement.
392392
*
393393
* Based in part on {@link https://cesium.com/learn/cesium-native/ref-doc/selection-algorithm-details.html Cesium Native tile selection}.
394+
*
395+
* @warn This option has been deprecated and will be removed in upcoming releases. The "optimized
396+
* load strategy" will be the only option with "loadSiblings" and "loadAncestors" as toggles.
394397
* @type {boolean}
395398
* @default true
396399
*/

0 commit comments

Comments
 (0)