maplibre-gl-inspect 0.0.3 → 0.0.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/dist/lib/maplibre-inspect.d.ts +1 -2
- package/dist/lib/style-gen.d.ts +2 -2
- package/dist/maplibre-gl-inspect.cjs +464 -462
- package/dist/maplibre-gl-inspect.cjs.map +1 -1
- package/dist/maplibre-gl-inspect.js +58 -57
- package/dist/maplibre-gl-inspect.js.map +1 -1
- package/dist/maplibre-gl-inspect.umd.cjs +60 -58
- package/dist/maplibre-gl-inspect.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/maplibre-gl-inspect.ts +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SourceSpecification } from 'maplibre-gl';
|
|
2
1
|
import type { Map } from 'maplibre-gl';
|
|
3
2
|
import type { Options } from '../types/maplibre-gl-inspect';
|
|
4
3
|
declare class MaplibreInspect {
|
|
@@ -9,7 +8,7 @@ declare class MaplibreInspect {
|
|
|
9
8
|
private _originalStyle;
|
|
10
9
|
private _toggle;
|
|
11
10
|
options: Options;
|
|
12
|
-
sources:
|
|
11
|
+
sources: Options['sources'];
|
|
13
12
|
assignLayerColor: Options['assignLayerColor'];
|
|
14
13
|
constructor(options: Options);
|
|
15
14
|
private _inspectStyle;
|
package/dist/lib/style-gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LayerSpecification, StyleSpecification, CircleLayerSpecification, FillLayerSpecification, LineLayerSpecification } from 'maplibre-gl';
|
|
2
2
|
import type { Options } from '../types/maplibre-gl-inspect';
|
|
3
|
-
declare const generateColoredLayers: (sources:
|
|
3
|
+
declare const generateColoredLayers: (sources: Options['sources'], assignLayerColor: Options['assignLayerColor']) => (FillLayerSpecification | LineLayerSpecification | CircleLayerSpecification)[];
|
|
4
4
|
declare const generateInspectStyle: (originalMapStyle: StyleSpecification, coloredLayers: LayerSpecification[], opts: any) => StyleSpecification;
|
|
5
5
|
export { generateInspectStyle, generateColoredLayers };
|