@nika-js/onlymap 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +8 -4
- package/dist/{basemap-5NHR6Gio.js → basemap-BiC_RwbV.js} +3 -7
- package/dist/basemap.d.ts +1 -5
- package/dist/bbox-tokens.d.ts +70 -0
- package/dist/{build-DJjheWZ2.js → build-DQCmcQE1.js} +1 -1
- package/dist/{client-0mQmDog8.js → client-C0CgEs_P.js} +2 -2
- package/dist/clip-box-controller.d.ts +0 -17
- package/dist/ctx.d.ts +15 -0
- package/dist/data-layer.d.ts +15 -8
- package/dist/dom-tile-layer.d.ts +30 -0
- package/dist/draw-controller.d.ts +1 -1
- package/dist/elements/om-map.d.ts +12 -1
- package/dist/feature-service.d.ts +42 -0
- package/dist/geodesy.d.ts +6 -5
- package/dist/{geoparquet-B_nO2OyP.js → geoparquet-DbVJrJYG.js} +1 -1
- package/dist/{globe-view-BFUa9ksE.js → globe-view-CrGbvqqZ.js} +1 -1
- package/dist/grid-tiles.d.ts +117 -0
- package/dist/{hillshade-B_CxPhtA.js → hillshade-CGY_OBaG.js} +2 -2
- package/dist/{hillshade-shader-r7GxxjXj.js → hillshade-shader-w8tmFgaV.js} +1 -1
- package/dist/{index-CU7RnKnO.js → index-2lD29y87.js} +25 -25
- package/dist/index-BahtHUrg.js +8458 -0
- package/dist/{index-DT5d7kFO.js → index-Bdltig68.js} +1 -1
- package/dist/{index-BvNxS6dM.js → index-ChoEWeXU.js} +1 -1
- package/dist/{index-A1FYw2dy.js → index-Cm2sfhw7.js} +1 -1
- package/dist/{index-DWijIMti.js → index-DrCMvhhr.js} +32340 -31035
- package/dist/{index-CObPGkze.js → index-Dtsf-TPD.js} +22 -22
- package/dist/{index-ChmxbIdj.js → index-GfvWJDX0.js} +36 -36
- package/dist/{index-YMu_yLXO.js → index-QrGqSW_H.js} +3 -3
- package/dist/{index-CgIuV5Oh.js → index-xF9sKoMB.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/layer-registry.d.ts +1 -0
- package/dist/layers/warped-bitmap-layer.d.ts +14 -1
- package/dist/{lerc-Bl4vym9y.js → lerc-DxujwTm7.js} +1 -1
- package/dist/onlymap.standalone.js +68435 -58161
- package/dist/onlymapjs.js +21 -21
- package/dist/parse-manifest.d.ts +4 -1
- package/dist/plane-gpu/plane-basemap.d.ts +158 -158
- package/dist/plane-vector/plane-mvt-layer.d.ts +158 -158
- package/dist/plane-warp.d.ts +14 -1
- package/dist/pmtiles.d.ts +76 -0
- package/dist/{post-process-effect-gFGVlC77.js → post-process-effect-BL9rBDEh.js} +1 -1
- package/dist/programmatic.d.ts +17 -1
- package/dist/{raster-1ShXyF12.js → raster-Bq768NZr.js} +4 -4
- package/dist/{raster-pipeline-BMS54TX2.js → raster-pipeline-C898iYqw.js} +11 -11
- package/dist/runtime-core.d.ts +106 -4
- package/dist/{terrain-inspect-Cndlmxig.js → terrain-inspect-DNZO8z6S.js} +1 -1
- package/dist/{text-on-path-QInco4aP.js → text-on-path-owfh8Ac6.js} +1 -1
- package/dist/tile-url.d.ts +84 -16
- package/dist/time-dimension.d.ts +25 -0
- package/dist/vector-style-BlnKzVND.js +518 -0
- package/dist/vector-style.d.ts +59 -0
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-CYD8fyBe.js → zarr-CMWiR63-.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +3 -3
- package/onlymapjs.attributes.json +15 -0
- package/onlymapjs.html-data.json +40 -0
- package/package.json +5 -2
- package/skills/onlymapjs/SKILL.md +9 -3
- package/skills/onlymapjs/references/syntax.md +36 -6
|
@@ -8495,6 +8495,164 @@ export declare class PlaneMVTLayer extends MVTLayer {
|
|
|
8495
8495
|
compare?: boolean;
|
|
8496
8496
|
ignore?: boolean;
|
|
8497
8497
|
})) | undefined;
|
|
8498
|
+
tileSize?: (number | {
|
|
8499
|
+
deprecatedFor?: string | string[];
|
|
8500
|
+
} | ({
|
|
8501
|
+
value: boolean;
|
|
8502
|
+
async?: boolean;
|
|
8503
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8504
|
+
equal?: ((value1: boolean, value2: boolean, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8505
|
+
} & {
|
|
8506
|
+
type: "boolean";
|
|
8507
|
+
}) | ({
|
|
8508
|
+
value: number;
|
|
8509
|
+
async?: boolean;
|
|
8510
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8511
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8512
|
+
} & {
|
|
8513
|
+
type: "number";
|
|
8514
|
+
min?: number;
|
|
8515
|
+
max?: number;
|
|
8516
|
+
}) | ({
|
|
8517
|
+
value: import("@deck.gl/core").Color | null;
|
|
8518
|
+
async?: boolean;
|
|
8519
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8520
|
+
equal?: ((value1: import("@deck.gl/core").Color | null, value2: import("@deck.gl/core").Color | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8521
|
+
} & {
|
|
8522
|
+
type: "color";
|
|
8523
|
+
optional?: boolean;
|
|
8524
|
+
}) | ({
|
|
8525
|
+
value: import("@deck.gl/core").TextureSource | null;
|
|
8526
|
+
async?: boolean;
|
|
8527
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8528
|
+
equal?: ((value1: import("@deck.gl/core").TextureSource | null, value2: import("@deck.gl/core").TextureSource | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8529
|
+
} & {
|
|
8530
|
+
type: "image";
|
|
8531
|
+
parameters?: import("@luma.gl/core").SamplerProps;
|
|
8532
|
+
}) | ({
|
|
8533
|
+
value: number;
|
|
8534
|
+
async?: boolean;
|
|
8535
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8536
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8537
|
+
} & {
|
|
8538
|
+
type: "data";
|
|
8539
|
+
}) | ({
|
|
8540
|
+
value: number;
|
|
8541
|
+
async?: boolean;
|
|
8542
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8543
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8544
|
+
} & {
|
|
8545
|
+
type: "array";
|
|
8546
|
+
optional?: boolean;
|
|
8547
|
+
ignore?: boolean;
|
|
8548
|
+
compare?: boolean | number;
|
|
8549
|
+
}) | ({
|
|
8550
|
+
value: number;
|
|
8551
|
+
async?: boolean;
|
|
8552
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8553
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8554
|
+
} & {
|
|
8555
|
+
type: "object";
|
|
8556
|
+
optional?: boolean;
|
|
8557
|
+
ignore?: boolean;
|
|
8558
|
+
compare?: boolean | number;
|
|
8559
|
+
}) | ({
|
|
8560
|
+
value: number;
|
|
8561
|
+
async?: boolean;
|
|
8562
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8563
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8564
|
+
} & {
|
|
8565
|
+
type: "accessor";
|
|
8566
|
+
}) | ({
|
|
8567
|
+
value: number;
|
|
8568
|
+
async?: boolean;
|
|
8569
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8570
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8571
|
+
} & {
|
|
8572
|
+
type: "function";
|
|
8573
|
+
optional?: boolean;
|
|
8574
|
+
compare?: boolean;
|
|
8575
|
+
ignore?: boolean;
|
|
8576
|
+
})) | undefined;
|
|
8577
|
+
extent?: (number[] | {
|
|
8578
|
+
deprecatedFor?: string | string[];
|
|
8579
|
+
} | ({
|
|
8580
|
+
value: boolean;
|
|
8581
|
+
async?: boolean;
|
|
8582
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8583
|
+
equal?: ((value1: boolean, value2: boolean, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8584
|
+
} & {
|
|
8585
|
+
type: "boolean";
|
|
8586
|
+
}) | ({
|
|
8587
|
+
value: number;
|
|
8588
|
+
async?: boolean;
|
|
8589
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8590
|
+
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8591
|
+
} & {
|
|
8592
|
+
type: "number";
|
|
8593
|
+
min?: number;
|
|
8594
|
+
max?: number;
|
|
8595
|
+
}) | ({
|
|
8596
|
+
value: import("@deck.gl/core").Color | null;
|
|
8597
|
+
async?: boolean;
|
|
8598
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8599
|
+
equal?: ((value1: import("@deck.gl/core").Color | null, value2: import("@deck.gl/core").Color | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8600
|
+
} & {
|
|
8601
|
+
type: "color";
|
|
8602
|
+
optional?: boolean;
|
|
8603
|
+
}) | ({
|
|
8604
|
+
value: import("@deck.gl/core").TextureSource | null;
|
|
8605
|
+
async?: boolean;
|
|
8606
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8607
|
+
equal?: ((value1: import("@deck.gl/core").TextureSource | null, value2: import("@deck.gl/core").TextureSource | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8608
|
+
} & {
|
|
8609
|
+
type: "image";
|
|
8610
|
+
parameters?: import("@luma.gl/core").SamplerProps;
|
|
8611
|
+
}) | ({
|
|
8612
|
+
value: number[] | null;
|
|
8613
|
+
async?: boolean;
|
|
8614
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8615
|
+
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8616
|
+
} & {
|
|
8617
|
+
type: "data";
|
|
8618
|
+
}) | ({
|
|
8619
|
+
value: number[] | null;
|
|
8620
|
+
async?: boolean;
|
|
8621
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8622
|
+
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8623
|
+
} & {
|
|
8624
|
+
type: "array";
|
|
8625
|
+
optional?: boolean;
|
|
8626
|
+
ignore?: boolean;
|
|
8627
|
+
compare?: boolean | number;
|
|
8628
|
+
}) | ({
|
|
8629
|
+
value: number[] | null;
|
|
8630
|
+
async?: boolean;
|
|
8631
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8632
|
+
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8633
|
+
} & {
|
|
8634
|
+
type: "object";
|
|
8635
|
+
optional?: boolean;
|
|
8636
|
+
ignore?: boolean;
|
|
8637
|
+
compare?: boolean | number;
|
|
8638
|
+
}) | ({
|
|
8639
|
+
value: number[] | null;
|
|
8640
|
+
async?: boolean;
|
|
8641
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8642
|
+
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8643
|
+
} & {
|
|
8644
|
+
type: "accessor";
|
|
8645
|
+
}) | ({
|
|
8646
|
+
value: number[] | null;
|
|
8647
|
+
async?: boolean;
|
|
8648
|
+
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
8649
|
+
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
8650
|
+
} & {
|
|
8651
|
+
type: "function";
|
|
8652
|
+
optional?: boolean;
|
|
8653
|
+
compare?: boolean;
|
|
8654
|
+
ignore?: boolean;
|
|
8655
|
+
}) | null) | undefined;
|
|
8498
8656
|
TilesetClass?: ({
|
|
8499
8657
|
deprecatedFor?: string | string[];
|
|
8500
8658
|
} | ({
|
|
@@ -9355,164 +9513,6 @@ export declare class PlaneMVTLayer extends MVTLayer {
|
|
|
9355
9513
|
compare?: boolean;
|
|
9356
9514
|
ignore?: boolean;
|
|
9357
9515
|
}) | null) | undefined;
|
|
9358
|
-
extent?: (number[] | {
|
|
9359
|
-
deprecatedFor?: string | string[];
|
|
9360
|
-
} | ({
|
|
9361
|
-
value: boolean;
|
|
9362
|
-
async?: boolean;
|
|
9363
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9364
|
-
equal?: ((value1: boolean, value2: boolean, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9365
|
-
} & {
|
|
9366
|
-
type: "boolean";
|
|
9367
|
-
}) | ({
|
|
9368
|
-
value: number;
|
|
9369
|
-
async?: boolean;
|
|
9370
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9371
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9372
|
-
} & {
|
|
9373
|
-
type: "number";
|
|
9374
|
-
min?: number;
|
|
9375
|
-
max?: number;
|
|
9376
|
-
}) | ({
|
|
9377
|
-
value: import("@deck.gl/core").Color | null;
|
|
9378
|
-
async?: boolean;
|
|
9379
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9380
|
-
equal?: ((value1: import("@deck.gl/core").Color | null, value2: import("@deck.gl/core").Color | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9381
|
-
} & {
|
|
9382
|
-
type: "color";
|
|
9383
|
-
optional?: boolean;
|
|
9384
|
-
}) | ({
|
|
9385
|
-
value: import("@deck.gl/core").TextureSource | null;
|
|
9386
|
-
async?: boolean;
|
|
9387
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9388
|
-
equal?: ((value1: import("@deck.gl/core").TextureSource | null, value2: import("@deck.gl/core").TextureSource | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9389
|
-
} & {
|
|
9390
|
-
type: "image";
|
|
9391
|
-
parameters?: import("@luma.gl/core").SamplerProps;
|
|
9392
|
-
}) | ({
|
|
9393
|
-
value: number[] | null;
|
|
9394
|
-
async?: boolean;
|
|
9395
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9396
|
-
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9397
|
-
} & {
|
|
9398
|
-
type: "data";
|
|
9399
|
-
}) | ({
|
|
9400
|
-
value: number[] | null;
|
|
9401
|
-
async?: boolean;
|
|
9402
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9403
|
-
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9404
|
-
} & {
|
|
9405
|
-
type: "array";
|
|
9406
|
-
optional?: boolean;
|
|
9407
|
-
ignore?: boolean;
|
|
9408
|
-
compare?: boolean | number;
|
|
9409
|
-
}) | ({
|
|
9410
|
-
value: number[] | null;
|
|
9411
|
-
async?: boolean;
|
|
9412
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9413
|
-
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9414
|
-
} & {
|
|
9415
|
-
type: "object";
|
|
9416
|
-
optional?: boolean;
|
|
9417
|
-
ignore?: boolean;
|
|
9418
|
-
compare?: boolean | number;
|
|
9419
|
-
}) | ({
|
|
9420
|
-
value: number[] | null;
|
|
9421
|
-
async?: boolean;
|
|
9422
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9423
|
-
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9424
|
-
} & {
|
|
9425
|
-
type: "accessor";
|
|
9426
|
-
}) | ({
|
|
9427
|
-
value: number[] | null;
|
|
9428
|
-
async?: boolean;
|
|
9429
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9430
|
-
equal?: ((value1: number[] | null, value2: number[] | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9431
|
-
} & {
|
|
9432
|
-
type: "function";
|
|
9433
|
-
optional?: boolean;
|
|
9434
|
-
compare?: boolean;
|
|
9435
|
-
ignore?: boolean;
|
|
9436
|
-
}) | null) | undefined;
|
|
9437
|
-
tileSize?: (number | {
|
|
9438
|
-
deprecatedFor?: string | string[];
|
|
9439
|
-
} | ({
|
|
9440
|
-
value: boolean;
|
|
9441
|
-
async?: boolean;
|
|
9442
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9443
|
-
equal?: ((value1: boolean, value2: boolean, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9444
|
-
} & {
|
|
9445
|
-
type: "boolean";
|
|
9446
|
-
}) | ({
|
|
9447
|
-
value: number;
|
|
9448
|
-
async?: boolean;
|
|
9449
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9450
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9451
|
-
} & {
|
|
9452
|
-
type: "number";
|
|
9453
|
-
min?: number;
|
|
9454
|
-
max?: number;
|
|
9455
|
-
}) | ({
|
|
9456
|
-
value: import("@deck.gl/core").Color | null;
|
|
9457
|
-
async?: boolean;
|
|
9458
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9459
|
-
equal?: ((value1: import("@deck.gl/core").Color | null, value2: import("@deck.gl/core").Color | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9460
|
-
} & {
|
|
9461
|
-
type: "color";
|
|
9462
|
-
optional?: boolean;
|
|
9463
|
-
}) | ({
|
|
9464
|
-
value: import("@deck.gl/core").TextureSource | null;
|
|
9465
|
-
async?: boolean;
|
|
9466
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9467
|
-
equal?: ((value1: import("@deck.gl/core").TextureSource | null, value2: import("@deck.gl/core").TextureSource | null, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9468
|
-
} & {
|
|
9469
|
-
type: "image";
|
|
9470
|
-
parameters?: import("@luma.gl/core").SamplerProps;
|
|
9471
|
-
}) | ({
|
|
9472
|
-
value: number;
|
|
9473
|
-
async?: boolean;
|
|
9474
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9475
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9476
|
-
} & {
|
|
9477
|
-
type: "data";
|
|
9478
|
-
}) | ({
|
|
9479
|
-
value: number;
|
|
9480
|
-
async?: boolean;
|
|
9481
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9482
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9483
|
-
} & {
|
|
9484
|
-
type: "array";
|
|
9485
|
-
optional?: boolean;
|
|
9486
|
-
ignore?: boolean;
|
|
9487
|
-
compare?: boolean | number;
|
|
9488
|
-
}) | ({
|
|
9489
|
-
value: number;
|
|
9490
|
-
async?: boolean;
|
|
9491
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9492
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9493
|
-
} & {
|
|
9494
|
-
type: "object";
|
|
9495
|
-
optional?: boolean;
|
|
9496
|
-
ignore?: boolean;
|
|
9497
|
-
compare?: boolean | number;
|
|
9498
|
-
}) | ({
|
|
9499
|
-
value: number;
|
|
9500
|
-
async?: boolean;
|
|
9501
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9502
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9503
|
-
} & {
|
|
9504
|
-
type: "accessor";
|
|
9505
|
-
}) | ({
|
|
9506
|
-
value: number;
|
|
9507
|
-
async?: boolean;
|
|
9508
|
-
validate?: (value: any, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean;
|
|
9509
|
-
equal?: ((value1: number, value2: number, propType: import("node_modules/@deck.gl/core/dist/lifecycle/prop-types").PropType) => boolean) | undefined;
|
|
9510
|
-
} & {
|
|
9511
|
-
type: "function";
|
|
9512
|
-
optional?: boolean;
|
|
9513
|
-
compare?: boolean;
|
|
9514
|
-
ignore?: boolean;
|
|
9515
|
-
})) | undefined;
|
|
9516
9516
|
maxZoom?: (number | {
|
|
9517
9517
|
deprecatedFor?: string | string[];
|
|
9518
9518
|
} | ({
|
package/dist/plane-warp.d.ts
CHANGED
|
@@ -52,7 +52,20 @@ export declare const latitudeOf: (y: number) => number;
|
|
|
52
52
|
* the projection can place. Common after a live `crs` switch, which
|
|
53
53
|
* re-meshes every cached tile for the new plane.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Where a mesh vertex is drawn: a projection plane, or — on a Web Mercator
|
|
57
|
+
* map — longitude/latitude as they are (`LNGLAT_FRAME`), which deck projects.
|
|
58
|
+
*/
|
|
59
|
+
export type WarpFrame = Pick<PlaneFrame, "toPlane"> & Partial<Pick<PlaneFrame, "fromPlane" | "originLngLat">>;
|
|
60
|
+
/** Positions in longitude/latitude: a Web Mercator map's own coordinates. */
|
|
61
|
+
export declare const LNGLAT_FRAME: WarpFrame;
|
|
62
|
+
/**
|
|
63
|
+
* `texCoordOf`, when given, says where in the IMAGE each vertex samples —
|
|
64
|
+
* for an image that is not this tile's own Web Mercator picture (a WMS
|
|
65
|
+
* answer in another CRS, covering the box enclosing the tile). Without it
|
|
66
|
+
* the image is the tile, edge to edge.
|
|
67
|
+
*/
|
|
68
|
+
export declare function buildWarpMesh(bounds: TileBoundsLngLat | ((u: number, v: number) => LngLatPair), frame: WarpFrame, n: number, texCoordOf?: (lngLat: LngLatPair) => [number, number]): WarpMesh;
|
|
56
69
|
/**
|
|
57
70
|
* The measurement the subdivision count rests on: the greatest distance, in
|
|
58
71
|
* PLANE METRES, between a point's true projected position and the bilinear
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PMTiles v3 (github.com/protomaps/PMTiles, spec v3): a whole tile pyramid
|
|
3
|
+
* in one file, read with HTTP Range requests — the header and root
|
|
4
|
+
* directory, then at most a few leaf directories, then the tile itself.
|
|
5
|
+
*
|
|
6
|
+
* A layer names an archive by its URL (`…/tiles.pmtiles`, or a
|
|
7
|
+
* `pmtiles://https://…` URL as MapLibre spells it). deck addresses tiles by
|
|
8
|
+
* template, so the runtime hands deck `<archive>#{z}/{x}/{y}` and each loader
|
|
9
|
+
* reads the tile index back out of that (`pmtilesTileIndex`). Tiles come back
|
|
10
|
+
* decompressed, whatever the archive stored.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PMTILES_TILE_TYPES: readonly ["unknown", "mvt", "png", "jpeg", "webp", "avif"];
|
|
13
|
+
export type PmtilesTileType = (typeof PMTILES_TILE_TYPES)[number];
|
|
14
|
+
export interface PmtilesHeader {
|
|
15
|
+
rootDirectoryOffset: number;
|
|
16
|
+
rootDirectoryLength: number;
|
|
17
|
+
metadataOffset: number;
|
|
18
|
+
metadataLength: number;
|
|
19
|
+
leafDirectoryOffset: number;
|
|
20
|
+
leafDirectoryLength: number;
|
|
21
|
+
tileDataOffset: number;
|
|
22
|
+
tileDataLength: number;
|
|
23
|
+
internalCompression: number;
|
|
24
|
+
tileCompression: number;
|
|
25
|
+
tileType: PmtilesTileType;
|
|
26
|
+
minZoom: number;
|
|
27
|
+
maxZoom: number;
|
|
28
|
+
/** [west, south, east, north], degrees. */
|
|
29
|
+
bounds: [number, number, number, number];
|
|
30
|
+
center: [number, number, number];
|
|
31
|
+
}
|
|
32
|
+
interface Entry {
|
|
33
|
+
tileId: number;
|
|
34
|
+
offset: number;
|
|
35
|
+
length: number;
|
|
36
|
+
runLength: number;
|
|
37
|
+
}
|
|
38
|
+
/** Is this URL a PMTiles archive (or the template the runtime made from one)? */
|
|
39
|
+
export declare function isPmtilesUrl(url: string | null | undefined): boolean;
|
|
40
|
+
/** The archive's own address: no `pmtiles://` prefix and no `#{z}/{x}/{y}` fragment. */
|
|
41
|
+
export declare function pmtilesArchiveUrl(url: string): string;
|
|
42
|
+
/** What deck is handed as the layer's template for an archive: deck fills the fragment, nothing is fetched by it. */
|
|
43
|
+
export declare function pmtilesTemplate(url: string): string;
|
|
44
|
+
/** The tile index a filled `pmtilesTemplate` carries, or null. */
|
|
45
|
+
export declare function pmtilesTileIndex(url: string): {
|
|
46
|
+
z: number;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
} | null;
|
|
50
|
+
/** The image MIME type a raster archive's tiles are, or null for vector or unknown tiles. */
|
|
51
|
+
export declare function pmtilesImageType(type: PmtilesTileType): string | null;
|
|
52
|
+
export declare function parseHeader(bytes: ArrayBuffer): PmtilesHeader;
|
|
53
|
+
/** Decompress per the archive's compression code: 1 none, 2 gzip. Brotli (3) and zstd (4) have no browser decoder. */
|
|
54
|
+
export declare function decompress(bytes: ArrayBuffer, compression: number): Promise<ArrayBuffer>;
|
|
55
|
+
/** The Hilbert-curve tile id of z/x/y: every tile of lower zooms first, then the position along this zoom's curve. */
|
|
56
|
+
export declare function zxyToTileId(z: number, x: number, y: number): number;
|
|
57
|
+
export declare function parseDirectory(buffer: ArrayBuffer): Entry[];
|
|
58
|
+
/** One archive: its header, cached directories, and Range reads of its tiles. */
|
|
59
|
+
export declare class PmtilesArchive {
|
|
60
|
+
readonly url: string;
|
|
61
|
+
private readonly init;
|
|
62
|
+
private headerPromise;
|
|
63
|
+
private readonly directories;
|
|
64
|
+
/** A server that ignores Range sends the whole file once; it is kept and sliced. */
|
|
65
|
+
private whole;
|
|
66
|
+
constructor(url: string, init?: RequestInit);
|
|
67
|
+
private range;
|
|
68
|
+
header(): Promise<PmtilesHeader>;
|
|
69
|
+
/** A directory, shared by every tile that needs it — so read with no tile's AbortSignal: one tile cancelled must not fail the others waiting on it. */
|
|
70
|
+
private directory;
|
|
71
|
+
/** The tile's bytes, decompressed — or null where the archive has no tile. */
|
|
72
|
+
tile(z: number, x: number, y: number, signal?: AbortSignal): Promise<ArrayBuffer | null>;
|
|
73
|
+
}
|
|
74
|
+
/** The shared reader for an archive URL (one per URL and request options, so directories are read once per page). */
|
|
75
|
+
export declare function pmtilesArchive(url: string, init?: RequestInit): PmtilesArchive;
|
|
76
|
+
export {};
|
package/dist/programmatic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Effect } from "@deck.gl/core";
|
|
2
|
-
import { type Camera, type CameraOptions, type MandatedChromeHosts } from "./runtime-core";
|
|
2
|
+
import { type Camera, type CameraOptions, type LayerErrorDetail, type MandatedChromeHosts } from "./runtime-core";
|
|
3
3
|
import type { HoverPickMode } from "./hover-pick";
|
|
4
4
|
import { type LightingIR, type LightingOptions } from "./scene-lighting";
|
|
5
5
|
import type { TerrainIR } from "./terrain";
|
|
@@ -63,6 +63,8 @@ export interface LayerDescriptor {
|
|
|
63
63
|
flush?: string;
|
|
64
64
|
/** Polling interval for REST snapshot URLs, e.g. "5s". */
|
|
65
65
|
refresh?: string;
|
|
66
|
+
/** For a `data` URL filled with the view's extent (`{bbox-crs84}`, `{bbox-epsg-XXXX}`): the most features kept per view (default 10000). */
|
|
67
|
+
maxFeatures?: number;
|
|
66
68
|
/**
|
|
67
69
|
* deck.gl updateTriggers, passed through per accessor prop. deck ignores
|
|
68
70
|
* accessor FUNCTION identity by design — supply a value here that changes
|
|
@@ -137,6 +139,8 @@ export interface MapControllerOptions {
|
|
|
137
139
|
onMapPoint?: (coordinate: [number, number] | null, kind: "click" | "hover") => void;
|
|
138
140
|
/** A Tile3DLayer finished loading its root tileset — the `om-tileset-load` DOM event's twin; `tileset` is the live deck `Tileset3D`. */
|
|
139
141
|
onTilesetLoad?: (layerId: string, tileset: unknown) => void;
|
|
142
|
+
/** A layer's tiles failed, once per cause per layer and template — the `om-layer-error` DOM event's twin. The same failure also reaches `onRuntimeError`. */
|
|
143
|
+
onLayerError?: (layerId: string, failure: LayerErrorDetail) => void;
|
|
140
144
|
/** A Route layer finished resolving — the `om-route-resolved` DOM event's twin; `route` carries the normalized geometry/distanceMeters/durationSec/legs/bounds. */
|
|
141
145
|
onRouteResolved?: (layerId: string, route: {
|
|
142
146
|
geometry?: {
|
|
@@ -230,7 +234,13 @@ export declare class MapController {
|
|
|
230
234
|
* `origin`, so it must reset on settle even for store-only consumers.
|
|
231
235
|
*/
|
|
232
236
|
private readonly viewSettle;
|
|
237
|
+
/** Hand the settled view to view-filled feature layers (feature-service.ts). */
|
|
238
|
+
private pushDataView;
|
|
233
239
|
private onViewChange?;
|
|
240
|
+
private onLayerError?;
|
|
241
|
+
private onRuntimeError?;
|
|
242
|
+
/** View-data findings already reported, so each is reported once while it stands (the om-map twin). */
|
|
243
|
+
private viewDataReported;
|
|
234
244
|
/** Per-layer data version counters (`data:<id>` snapshots) — bumped on every data change, monotonic for the controller's lifetime. */
|
|
235
245
|
private readonly dataVersions;
|
|
236
246
|
private readyFired;
|
|
@@ -248,6 +258,12 @@ export declare class MapController {
|
|
|
248
258
|
*/
|
|
249
259
|
clusterLeaves(layerId: string, clusterId: number, limit?: number, offset?: number): unknown[];
|
|
250
260
|
private scheduleCommit;
|
|
261
|
+
/**
|
|
262
|
+
* A view-filled feature layer's failure or cap (feature-service.ts), on
|
|
263
|
+
* the same channels om-map uses — `onLayerError` and `onRuntimeError` —
|
|
264
|
+
* once per finding while it stands.
|
|
265
|
+
*/
|
|
266
|
+
private reportViewData;
|
|
251
267
|
private commit;
|
|
252
268
|
private checkReady;
|
|
253
269
|
/** Readiness as a poll (the promise form is `ready`). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-
|
|
1
|
+
import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-C898iYqw.js";
|
|
2
2
|
import { N as Nt, c as zt } from "./hillshade-apron-Bem3DWyJ.js";
|
|
3
|
-
import { r as Bt } from "./hillshade-shader-
|
|
4
|
-
import {
|
|
3
|
+
import { r as Bt } from "./hillshade-shader-w8tmFgaV.js";
|
|
4
|
+
import { c4 as _t, c5 as $t } from "./index-DrCMvhhr.js";
|
|
5
5
|
import we from "./index-CW1n5LdO.js";
|
|
6
6
|
function kt(e, t) {
|
|
7
7
|
const n = e.length / 3, r = new Uint8ClampedArray(n * 4), o = 0, i = n, a = n * 2;
|
|
@@ -1072,7 +1072,7 @@ j.set(f.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
|
|
|
1072
1072
|
j.set(f.Jpeg, () => Promise.resolve(ce));
|
|
1073
1073
|
j.set(f.Jpeg6, () => Promise.resolve(ce));
|
|
1074
1074
|
j.set(f.Webp, () => Promise.resolve(ce));
|
|
1075
|
-
j.set(f.Lerc, () => import("./lerc-
|
|
1075
|
+
j.set(f.Lerc, () => import("./lerc-DxujwTm7.js").then((e) => e.decode));
|
|
1076
1076
|
async function ue(e, t, n) {
|
|
1077
1077
|
const r = j.get(t);
|
|
1078
1078
|
if (!r)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w as he } from "./mgrs-BY9bIvp4.js";
|
|
2
|
-
import { am as de,
|
|
3
|
-
import { p as ye, a as Le, h as we } from "./hillshade-shader-
|
|
2
|
+
import { am as de, bY as fe, bZ as re, c as oe, b_ as me, G as pe, b$ as ge, b2 as Z, c0 as ve, N as be, c1 as xe, c2 as Pe, c3 as Te, ac as ie } from "./index-DrCMvhhr.js";
|
|
3
|
+
import { p as ye, a as Le, h as we } from "./hillshade-shader-w8tmFgaV.js";
|
|
4
4
|
function Oe(n, e, t) {
|
|
5
5
|
const { projectedCorners: s } = e, { topLeft: r, topRight: o, bottomRight: i, bottomLeft: a } = s, c = t(r[0], r[1]), u = t(o[0], o[1]), l = t(i[0], i[1]), d = t(a[0], a[1]), f = [
|
|
6
6
|
c,
|
|
@@ -742,7 +742,7 @@ const J = 512, qe = [
|
|
|
742
742
|
// right edge
|
|
743
743
|
[0.5, 1]
|
|
744
744
|
// bottom edge
|
|
745
|
-
]), E = 6378137, S = 2 * Math.PI * E, K = S / 2,
|
|
745
|
+
]), E = 6378137, S = 2 * Math.PI * E, K = S / 2, Q = 85.05112877980659;
|
|
746
746
|
class z {
|
|
747
747
|
/** Index across a row */
|
|
748
748
|
x;
|
|
@@ -906,7 +906,7 @@ function Ge(n, e) {
|
|
|
906
906
|
const [r, o] = n(t, s);
|
|
907
907
|
if (Number.isFinite(r) && Number.isFinite(o))
|
|
908
908
|
return [r, o];
|
|
909
|
-
const [i, a] = e(t, s), u = Math.max(-
|
|
909
|
+
const [i, a] = e(t, s), u = Math.max(-Q, Math.min(Q, a)) * Math.PI / 180, l = i * Math.PI * E / 180, d = Math.log(Math.tan(Math.PI / 4 + u / 2)) * E;
|
|
910
910
|
return [l, d];
|
|
911
911
|
};
|
|
912
912
|
}
|
|
@@ -926,7 +926,7 @@ function Je([n, e]) {
|
|
|
926
926
|
];
|
|
927
927
|
}
|
|
928
928
|
const Ke = 100;
|
|
929
|
-
function
|
|
929
|
+
function Qe(n) {
|
|
930
930
|
const { descriptor: e, viewport: t, datasetWgs84Bounds: s } = n, r = e.levels[0], o = [];
|
|
931
931
|
if (r.matrixWidth * r.matrixHeight <= Ke) {
|
|
932
932
|
for (let m = 0; m < r.matrixHeight; m++)
|
|
@@ -948,7 +948,7 @@ function _e(n) {
|
|
|
948
948
|
o.push(new z(p, m, 0, { descriptor: e }));
|
|
949
949
|
return o;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function _e(n, e) {
|
|
952
952
|
const { viewport: t, maxZ: s, zRange: r, wgs84Bounds: o, pixelRatio: i = 1 } = e, a = e.boundingVolumeCache ?? new ce();
|
|
953
953
|
a.sweep();
|
|
954
954
|
const c = t instanceof pe && t.resolution ? t.projectPosition : null, u = Object.values(t.getFrustumPlanes()).map(({ normal: O, distance: B }) => new ge(O.clone().negate(), B)), l = new ve(u), d = t.distanceScales.unitsPerMeter[2], f = r && r[0] * d || 0, h = r && r[1] * d || 0, m = 0, [p, g, P, b] = o, x = Z([p, g]), v = Z([P, b]), T = [
|
|
@@ -956,7 +956,7 @@ function Qe(n, e) {
|
|
|
956
956
|
x[1],
|
|
957
957
|
v[0],
|
|
958
958
|
v[1]
|
|
959
|
-
], w =
|
|
959
|
+
], w = Qe({
|
|
960
960
|
descriptor: n,
|
|
961
961
|
viewport: t,
|
|
962
962
|
datasetWgs84Bounds: o
|
|
@@ -1062,7 +1062,7 @@ class ot extends Te {
|
|
|
1062
1062
|
const { viewport: t, minZoom: s } = e;
|
|
1063
1063
|
if (typeof s == "number" && t.zoom < s)
|
|
1064
1064
|
return [];
|
|
1065
|
-
const r = this.descriptor.levels.length - 1, o = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, r) : r, i =
|
|
1065
|
+
const r = this.descriptor.levels.length - 1, o = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, r) : r, i = _e(this.descriptor, {
|
|
1066
1066
|
viewport: t,
|
|
1067
1067
|
maxZ: o,
|
|
1068
1068
|
zRange: e.zRange ?? null,
|
|
@@ -1142,7 +1142,7 @@ class ot extends Te {
|
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
const N = 512, it = 40075016686e-3,
|
|
1145
|
+
const N = 512, it = 40075016686e-3, _ = N / it, at = {
|
|
1146
1146
|
...ie.defaultProps,
|
|
1147
1147
|
maxError: 0.125,
|
|
1148
1148
|
debug: !1,
|
|
@@ -1275,12 +1275,12 @@ class St extends oe {
|
|
|
1275
1275
|
coordinateOrigin: [N / 2, N / 2, 0],
|
|
1276
1276
|
// biome-ignore format: array
|
|
1277
1277
|
modelMatrix: [
|
|
1278
|
-
|
|
1278
|
+
_,
|
|
1279
1279
|
0,
|
|
1280
1280
|
0,
|
|
1281
1281
|
0,
|
|
1282
1282
|
0,
|
|
1283
|
-
|
|
1283
|
+
_,
|
|
1284
1284
|
0,
|
|
1285
1285
|
0,
|
|
1286
1286
|
0,
|