@unvt/charites 2.1.0 → 2.1.1
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.
|
@@ -154,6 +154,14 @@ If you repeatedly use the same expression (color, font, etc) for several layers,
|
|
|
154
154
|
:scale: 75%
|
|
155
155
|
:align: center
|
|
156
156
|
|
|
157
|
+
(Tips 6) Use inspect control to view features
|
|
158
|
+
################################################################
|
|
159
|
+
Use maplibre-gl-js inspect control to view all features of the vector sources and allows hovering over features to see their properties.
|
|
160
|
+
|
|
161
|
+
.. image:: ./img/example02-019.png
|
|
162
|
+
:scale: 75%
|
|
163
|
+
:align: center
|
|
164
|
+
|
|
157
165
|
Step 5. Exporting style json from YAML files
|
|
158
166
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
159
167
|
Once you have edited your style with YAML files, you can now export it back to json by running the following command.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unvt/charites",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": {
|
|
6
6
|
"charites": "dist/cli.js"
|
|
@@ -20,25 +20,26 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@maplibre/maplibre-gl-
|
|
23
|
+
"@maplibre/maplibre-gl-inspect": "^1.7.1",
|
|
24
|
+
"@maplibre/maplibre-gl-style-spec": "^23.2.2",
|
|
24
25
|
"@unvt/sprite-one": "^0.1.1",
|
|
25
26
|
"@watergis/maplibre-gl-legend": "^2.0.5",
|
|
26
|
-
"axios": "^1.
|
|
27
|
+
"axios": "^1.9.0",
|
|
27
28
|
"commander": "^13.1.0",
|
|
28
|
-
"glob": "^11.0.
|
|
29
|
+
"glob": "^11.0.2",
|
|
29
30
|
"js-yaml": "^4.1.0",
|
|
30
31
|
"jsonminify": "^0.4.2",
|
|
31
|
-
"maplibre-gl": "^5.
|
|
32
|
+
"maplibre-gl": "^5.4.0",
|
|
32
33
|
"node-watch": "^0.7.4",
|
|
33
|
-
"open": "^10.1.
|
|
34
|
+
"open": "^10.1.2",
|
|
34
35
|
"pmtiles": "^4.3.0",
|
|
35
|
-
"vite": "^6.
|
|
36
|
-
"ws": "^8.18.
|
|
36
|
+
"vite": "^6.3.4",
|
|
37
|
+
"ws": "^8.18.2"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@eslint/eslintrc": "^3.3.1",
|
|
40
|
-
"@eslint/js": "^9.
|
|
41
|
-
"@playwright/test": "^1.
|
|
41
|
+
"@eslint/js": "^9.26.0",
|
|
42
|
+
"@playwright/test": "^1.52.0",
|
|
42
43
|
"@types/chai": "^5.2.1",
|
|
43
44
|
"@types/chai-as-promised": "^8.0.2",
|
|
44
45
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -47,23 +48,23 @@
|
|
|
47
48
|
"@types/jsonminify": "^0.4.3",
|
|
48
49
|
"@types/mapbox__point-geometry": "^0.1.4",
|
|
49
50
|
"@types/mocha": "^10.0.10",
|
|
50
|
-
"@types/node": "^22.
|
|
51
|
+
"@types/node": "^22.15.3",
|
|
51
52
|
"@types/ws": "^8.18.1",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
54
|
+
"@typescript-eslint/parser": "^8.31.1",
|
|
54
55
|
"chai": "^5.2.0",
|
|
55
56
|
"chai-as-promised": "^8.0.1",
|
|
56
|
-
"eslint": "^9.
|
|
57
|
-
"eslint-config-prettier": "^10.1.
|
|
57
|
+
"eslint": "^9.26.0",
|
|
58
|
+
"eslint-config-prettier": "^10.1.2",
|
|
58
59
|
"eslint-plugin-prettier": "^5.2.6",
|
|
59
60
|
"fs-extra": "^11.3.0",
|
|
60
61
|
"kill-port-process": "^3.2.1",
|
|
61
|
-
"mocha": "^11.
|
|
62
|
+
"mocha": "^11.2.2",
|
|
62
63
|
"node-abort-controller": "^3.1.1",
|
|
63
64
|
"prettier": "^3.5.3",
|
|
64
65
|
"ts-node": "^10.9.2",
|
|
65
66
|
"tsconfig-paths": "^4.2.0",
|
|
66
|
-
"tsx": "^4.19.
|
|
67
|
+
"tsx": "^4.19.4",
|
|
67
68
|
"typescript": "^5.8.3"
|
|
68
69
|
},
|
|
69
70
|
"type": "module"
|
package/provider/src/main.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Map,
|
|
3
|
+
Popup,
|
|
3
4
|
MapOptions,
|
|
4
5
|
NavigationControl,
|
|
5
6
|
addProtocol,
|
|
6
7
|
IControl,
|
|
7
8
|
} from 'maplibre-gl'
|
|
8
9
|
import 'maplibre-gl/dist/maplibre-gl.css'
|
|
10
|
+
import '@maplibre/maplibre-gl-inspect/dist/maplibre-gl-inspect.css'
|
|
11
|
+
import MaplibreInspect from '@maplibre/maplibre-gl-inspect'
|
|
9
12
|
import { MaplibreLegendControl } from '@watergis/maplibre-gl-legend'
|
|
10
13
|
import '@watergis/maplibre-gl-legend/dist/maplibre-gl-legend.css'
|
|
11
14
|
import { Protocol } from 'pmtiles'
|
|
@@ -119,6 +122,14 @@ const init = async () => {
|
|
|
119
122
|
|
|
120
123
|
charites.initializeWebSocket(map)
|
|
121
124
|
|
|
125
|
+
map.addControl(
|
|
126
|
+
new MaplibreInspect({
|
|
127
|
+
popup: new Popup({
|
|
128
|
+
closeButton: false,
|
|
129
|
+
closeOnClick: false,
|
|
130
|
+
}),
|
|
131
|
+
}),
|
|
132
|
+
)
|
|
122
133
|
map.addControl(new NavigationControl(), 'top-right')
|
|
123
134
|
map.addControl(
|
|
124
135
|
new MaplibreLegendControl(
|