solid-map-gl 1.3.0 → 1.3.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/README.md +3 -27
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles.css +1 -2
- package/dist/source/components/MapGL/index.jsx +35 -23
- package/dist/source/components/Source/index.jsx +15 -10
- package/dist/source/mapStyles.js +102 -116
- package/dist/types/components/MapGL/index.d.ts +4 -3
- package/dist/types/mapStyles.d.ts +97 -52
- package/package.json +5 -6
- package/dist/source/style.css +0 -14
|
@@ -1,56 +1,101 @@
|
|
|
1
1
|
export declare const vectorStyleList: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
mb: {
|
|
3
|
+
light: string;
|
|
4
|
+
dark: string;
|
|
5
|
+
street: string;
|
|
6
|
+
outdoor: string;
|
|
7
|
+
sat: string;
|
|
8
|
+
sat_street: string;
|
|
9
|
+
nav: string;
|
|
10
|
+
nav_night: string;
|
|
11
|
+
basic: string;
|
|
12
|
+
monochrome: string;
|
|
13
|
+
leshine: string;
|
|
14
|
+
icecream: string;
|
|
15
|
+
cali: string;
|
|
16
|
+
northstar: string;
|
|
17
|
+
mineral: string;
|
|
18
|
+
moonlight: string;
|
|
19
|
+
frank: string;
|
|
20
|
+
minimo: string;
|
|
21
|
+
decimal: string;
|
|
22
|
+
standard: string;
|
|
23
|
+
blueprint: string;
|
|
24
|
+
bubble: string;
|
|
25
|
+
pencil: string;
|
|
26
|
+
swiss_ski: string;
|
|
27
|
+
vintage: string;
|
|
28
|
+
whaam: string;
|
|
29
|
+
neon: string;
|
|
30
|
+
camoflauge: string;
|
|
31
|
+
emerald: string;
|
|
32
|
+
runner: string;
|
|
33
|
+
x_ray: string;
|
|
34
|
+
};
|
|
35
|
+
esri: {
|
|
36
|
+
blueprint: string;
|
|
37
|
+
charted_territory: string;
|
|
38
|
+
colored_pencil: string;
|
|
39
|
+
community: string;
|
|
40
|
+
mid_century: string;
|
|
41
|
+
modern_antique: string;
|
|
42
|
+
nat_geo: string;
|
|
43
|
+
newspaper: string;
|
|
44
|
+
open_street_map: string;
|
|
45
|
+
light_gray_canvas: string;
|
|
46
|
+
dark_gray_canvas: string;
|
|
47
|
+
human_geo_light: string;
|
|
48
|
+
human_geo_dark: string;
|
|
49
|
+
world_navigation: string;
|
|
50
|
+
world_street: string;
|
|
51
|
+
world_street_night: string;
|
|
52
|
+
world_terrain: string;
|
|
53
|
+
world_terrain_hybrid: string;
|
|
54
|
+
world_topographic: string;
|
|
55
|
+
chromium: string;
|
|
56
|
+
dreamcatcher: string;
|
|
57
|
+
seahaven: string;
|
|
58
|
+
sangria: string;
|
|
59
|
+
mercurial: string;
|
|
60
|
+
imagery: string;
|
|
61
|
+
imagery_hybrid: string;
|
|
62
|
+
firefly: string;
|
|
63
|
+
firefly_hybrid: string;
|
|
64
|
+
oceans: string;
|
|
65
|
+
};
|
|
33
66
|
};
|
|
34
67
|
export declare const rasterStyleList: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
68
|
+
osm: {
|
|
69
|
+
org: string;
|
|
70
|
+
human: string;
|
|
71
|
+
cycle: string;
|
|
72
|
+
topo: string;
|
|
73
|
+
_copy: string;
|
|
74
|
+
};
|
|
75
|
+
carto: {
|
|
76
|
+
voyager: string;
|
|
77
|
+
positron: string;
|
|
78
|
+
dark: string;
|
|
79
|
+
_copy: string;
|
|
80
|
+
};
|
|
81
|
+
stamen: {
|
|
82
|
+
toner: string;
|
|
83
|
+
toner_lite: string;
|
|
84
|
+
watercolor: string;
|
|
85
|
+
terrain: string;
|
|
86
|
+
_copy: string;
|
|
87
|
+
};
|
|
88
|
+
tf: {
|
|
89
|
+
cycle: string;
|
|
90
|
+
trans: string;
|
|
91
|
+
trans_dark: string;
|
|
92
|
+
landscape: string;
|
|
93
|
+
outdoors: string;
|
|
94
|
+
neighbourhood: string;
|
|
95
|
+
spinal: string;
|
|
96
|
+
pioneer: string;
|
|
97
|
+
atlas: string;
|
|
98
|
+
mobile: string;
|
|
99
|
+
_copy: string;
|
|
100
|
+
};
|
|
56
101
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
2
|
+
"version": "1.3.3",
|
|
3
3
|
"name": "solid-map-gl",
|
|
4
4
|
"description": "Solid Component Library for Mapbox GL JS",
|
|
5
5
|
"info": "Solid Component Library for Mapbox GL JS. Mapbox GL JS is a JavaScript library that renders interactive maps from vector tiles and Mapbox styles using WebGL. This project is intended to be as close as possible to the Mapbox GL JS API.",
|
|
@@ -52,17 +52,16 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"jsdom": "^19.0.0",
|
|
54
54
|
"mapbox-gl": "^2.8.2",
|
|
55
|
-
"rollup": "^2.75.
|
|
56
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
55
|
+
"rollup": "^2.75.6",
|
|
57
56
|
"rollup-plugin-import-css": "^3.0.3",
|
|
58
57
|
"rollup-plugin-uglify": "^6.0.4",
|
|
59
58
|
"rollup-preset-solid": "^1.4.0",
|
|
60
59
|
"solid-js": "^1.4.3",
|
|
61
60
|
"solid-testing-library": "^0.3.0",
|
|
62
|
-
"typescript": "^4.7.
|
|
63
|
-
"vite": "^2.9.
|
|
61
|
+
"typescript": "^4.7.3",
|
|
62
|
+
"vite": "^2.9.10",
|
|
64
63
|
"vite-plugin-solid": "^2.2.6",
|
|
65
|
-
"vitest": "^0.
|
|
64
|
+
"vitest": "^0.14.1"
|
|
66
65
|
},
|
|
67
66
|
"peerDependencies": {
|
|
68
67
|
"mapbox-gl": "^2.8.2",
|
package/dist/source/style.css
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
.mapboxgl-ctrl-group button {
|
|
2
|
-
margin: 0;
|
|
3
|
-
}
|
|
4
|
-
.mapboxgl-ctrl-attrib.mapboxgl-compact {
|
|
5
|
-
min-height: 24px;
|
|
6
|
-
}
|
|
7
|
-
/* Traffic */
|
|
8
|
-
.mapboxgl-ctrl-traffic {
|
|
9
|
-
background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23333333%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%22-2%20-2%2022%2022%22%3E%0D%0A%3Cpath%20d%3D%22M13%2C4.1L12%2C3H6L5%2C4.1l-2%2C9.8L4%2C15h10l1-1.1L13%2C4.1z%20M10%2C13H8v-3h2V13z%20M10%2C8H8V5h2V8z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.mapboxgl-ctrl-map {
|
|
13
|
-
background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23333333%22%20viewBox%3D%22-10%20-10%2060%2060%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cg%3E%3Cpath%20d%3D%22m25%2031.640000000000004v-19.766666666666673l-10-3.511666666666663v19.766666666666666z%20m9.140000000000008-26.640000000000004q0.8599999999999923%200%200.8599999999999923%200.8600000000000003v25.156666666666666q0%200.625-0.625%200.783333333333335l-9.375%203.1999999999999993-10-3.5133333333333354-8.906666666666668%203.4383333333333326-0.2333333333333334%200.07833333333333314q-0.8616666666666664%200-0.8616666666666664-0.8599999999999994v-25.156666666666663q0-0.625%200.6233333333333331-0.7833333333333332l9.378333333333334-3.198333333333334%2010%203.5133333333333336%208.905000000000001-3.4383333333333344z%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E);
|
|
14
|
-
}
|