maplibre-gl 2.1.7 → 2.1.8-pre.3
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/build/readme.md +1 -1
- package/build/rollup_plugins.ts +7 -7
- 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 +105 -319
- package/dist/maplibre-gl.d.ts +53 -54
- package/dist/maplibre-gl.js +3 -3
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +9 -10
- package/src/data/bucket/symbol_bucket.ts +1 -1
- package/src/data/feature_index.ts +3 -2
- package/src/geo/transform.test.ts +14 -0
- package/src/geo/transform.ts +4 -4
- package/src/render/draw_symbol.test.ts +152 -0
- package/src/render/draw_symbol.ts +76 -32
- package/src/render/painter.ts +2 -2
- package/src/render/program/fill_extrusion_program.ts +1 -1
- package/src/source/query_features.ts +3 -2
- package/src/source/raster_tile_source.ts +2 -4
- package/src/source/source_cache.test.ts +54 -0
- package/src/source/source_cache.ts +6 -2
- package/src/source/tile.ts +2 -1
- package/src/source/vector_tile_worker_source.ts +2 -4
- package/src/style/query_utils.test.ts +107 -0
- package/src/style/query_utils.ts +25 -0
- package/src/style/style.test.ts +9 -2
- package/src/style/style.ts +15 -21
- package/src/style/style_layer/circle_style_layer.ts +2 -2
- package/src/style/style_layer/fill_extrusion_style_layer.ts +1 -1
- package/src/style/style_layer/line_style_layer.ts +1 -25
- package/src/style/style_layer/symbol_style_layer.ts +1 -1
- package/src/style/style_layer/symbol_style_layer_properties.g.ts +2 -2
- package/src/style-spec/reference/v8.json +6 -0
- package/src/style-spec/types.g.ts +1 -1
- package/src/symbol/collision_index.test.ts +18 -0
- package/src/symbol/collision_index.ts +3 -2
- package/src/symbol/projection.test.ts +12 -0
- package/src/symbol/projection.ts +16 -14
- package/src/symbol/symbol_layout.ts +2 -2
- package/src/symbol/symbol_size.ts +4 -2
- package/src/ui/map.ts +20 -37
- package/src/util/ajax.test.ts +12 -4
- package/src/util/ajax.ts +16 -7
- package/src/util/vectortile_to_geojson.ts +18 -6
- package/dist/maplibre-gl-unminified.js +0 -39041
- package/dist/maplibre-gl-unminified.js.map +0 -1
package/build/readme.md
CHANGED
|
@@ -8,7 +8,7 @@ The bundeling process can be split into several steps:
|
|
|
8
8
|
`npm run build-css`
|
|
9
9
|
This command will compile the css code and create the css file.
|
|
10
10
|
|
|
11
|
-
`npm run build-prod`
|
|
11
|
+
`npm run build-prod` and `npm run build-dev`
|
|
12
12
|
These commands will use rollup to bundle the code. This is where the magic happens and uses some files in this folder.
|
|
13
13
|
|
|
14
14
|
`banner.ts` is used to create a banner at the beginning of the output file
|
package/build/rollup_plugins.ts
CHANGED
|
@@ -17,7 +17,7 @@ export const nodeResolve = resolve({
|
|
|
17
17
|
preferBuiltins: false
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
export const plugins = (
|
|
20
|
+
export const plugins = (production: boolean): Plugin[] => [
|
|
21
21
|
minifyStyleSpec(),
|
|
22
22
|
json(),
|
|
23
23
|
// https://github.com/zaach/jison/issues/351
|
|
@@ -29,20 +29,20 @@ export const plugins = (minified: boolean, production: boolean): Plugin[] => [
|
|
|
29
29
|
'_token_stack:': ''
|
|
30
30
|
}
|
|
31
31
|
}),
|
|
32
|
-
production
|
|
32
|
+
production && strip({
|
|
33
33
|
sourceMap: true,
|
|
34
34
|
functions: ['PerformanceUtils.*', 'Debug.*']
|
|
35
|
-
})
|
|
36
|
-
|
|
35
|
+
}),
|
|
36
|
+
production && terser({
|
|
37
37
|
compress: {
|
|
38
38
|
// eslint-disable-next-line camelcase
|
|
39
39
|
pure_getters: true,
|
|
40
40
|
passes: 3
|
|
41
41
|
}
|
|
42
|
-
})
|
|
43
|
-
production
|
|
42
|
+
}),
|
|
43
|
+
production && unassert({
|
|
44
44
|
include: ['**/*'], // by default, unassert only includes .js files
|
|
45
|
-
})
|
|
45
|
+
}),
|
|
46
46
|
nodeResolve,
|
|
47
47
|
typescript(),
|
|
48
48
|
commonjs({
|