maplibre-gl 3.4.0 → 3.5.0
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/dist/maplibre-gl-csp-worker.js +1 -1
- package/dist/maplibre-gl-csp-worker.js.map +1 -1
- package/dist/maplibre-gl-csp.js +1 -1
- package/dist/maplibre-gl-csp.js.map +1 -1
- package/dist/maplibre-gl-dev.js +263 -64
- package/dist/maplibre-gl-dev.js.map +1 -1
- package/dist/maplibre-gl.d.ts +12 -3
- package/dist/maplibre-gl.js +4 -4
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +15 -15
- package/src/render/glyph_manager.test.ts +10 -9
- package/src/render/glyph_manager.ts +17 -10
- package/src/source/raster_dem_tile_source.ts +21 -9
- package/src/source/raster_dem_tile_worker_source.ts +7 -24
- package/src/source/raster_tile_source.test.ts +11 -0
- package/src/source/raster_tile_source.ts +24 -0
- package/src/style/style.ts +3 -0
- package/src/style/style_glyph.ts +4 -3
- package/src/symbol/quads.ts +4 -2
- package/src/ui/map.test.ts +17 -0
- package/src/util/offscreen_canvas_distorted.test.ts +13 -0
- package/src/util/offscreen_canvas_distorted.ts +39 -0
- package/src/util/util.test.ts +171 -1
- package/src/util/util.ts +150 -0
package/dist/maplibre-gl.d.ts
CHANGED
|
@@ -1681,15 +1681,16 @@ export declare class ImageManager extends Evented {
|
|
|
1681
1681
|
beginFrame(): void;
|
|
1682
1682
|
dispatchRenderCallbacks(ids: Array<string>): void;
|
|
1683
1683
|
}
|
|
1684
|
-
/**
|
|
1685
|
-
* The glyph's metrices
|
|
1686
|
-
*/
|
|
1687
1684
|
export type GlyphMetrics = {
|
|
1688
1685
|
width: number;
|
|
1689
1686
|
height: number;
|
|
1690
1687
|
left: number;
|
|
1691
1688
|
top: number;
|
|
1692
1689
|
advance: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* isDoubleResolution = true for 48px textures
|
|
1692
|
+
*/
|
|
1693
|
+
isDoubleResolution?: boolean;
|
|
1693
1694
|
};
|
|
1694
1695
|
/**
|
|
1695
1696
|
* @internal
|
|
@@ -11288,6 +11289,14 @@ export declare class RasterTileSource extends Evented implements Source {
|
|
|
11288
11289
|
loaded(): boolean;
|
|
11289
11290
|
onAdd(map: Map): void;
|
|
11290
11291
|
onRemove(): void;
|
|
11292
|
+
setSourceProperty(callback: Function): void;
|
|
11293
|
+
/**
|
|
11294
|
+
* Sets the source `tiles` property and re-renders the map.
|
|
11295
|
+
*
|
|
11296
|
+
* @param tiles - An array of one or more tile source URLs, as in the raster tiles spec (See the [Style Specification](https://maplibre.org/maplibre-style-spec/)
|
|
11297
|
+
* @returns `this`
|
|
11298
|
+
*/
|
|
11299
|
+
setTiles(tiles: Array<string>): this;
|
|
11291
11300
|
serialize(): any;
|
|
11292
11301
|
hasTile(tileID: OverscaledTileID): boolean;
|
|
11293
11302
|
loadTile(tile: Tile, callback: Callback<void>): void;
|