Skip to content

Commit 8dba921

Browse files
authored
Update style-spec package, added render test (#5132)
* Update style-spec package, added render test * Update changelog * Fix typos
1 parent bde599c commit 8dba921

File tree

5 files changed

+292
-5
lines changed

5 files changed

+292
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- ⚠️ Change drag rotate behavior to be less abrupt around the center ([#5104](https://github.com/maplibre/maplibre-gl-js/pull/5104))
1010
- Fix regression in render world copies ([#5101](https://github.com/maplibre/maplibre-gl-js/pull/5101))
1111
- Fix unwanted roll when motion is interrupted ([#5083](https://github.com/maplibre/maplibre-gl-js/pull/5083))
12+
- Fix `geometry-type` filter expression results ([#5132](https://github.com/maplibre/maplibre-gl-js/pull/5132))
1213
- _...Add new stuff here..._
1314

1415
## 5.0.0-pre.8

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@mapbox/unitbezier": "^0.0.1",
2525
"@mapbox/vector-tile": "^1.3.1",
2626
"@mapbox/whoots-js": "^3.1.0",
27-
"@maplibre/maplibre-gl-style-spec": "^22.0.0",
27+
"@maplibre/maplibre-gl-style-spec": "^22.0.1",
2828
"@types/geojson": "^7946.0.14",
2929
"@types/geojson-vt": "3.2.5",
3030
"@types/mapbox__point-geometry": "^0.1.4",
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
{
2+
"version": 8,
3+
"center": [-100, 45],
4+
"zoom": 4,
5+
"name": "OpenStreetMap",
6+
"glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
7+
"sources": {
8+
"geojson": {
9+
"type": "geojson",
10+
"data": {
11+
"type": "FeatureCollection",
12+
"features": [
13+
{
14+
"type": "Feature",
15+
"properties": {},
16+
"geometry": {
17+
"coordinates": [
18+
-100,
19+
40
20+
],
21+
"type": "Point"
22+
}
23+
},
24+
{
25+
"type": "Feature",
26+
"properties": {},
27+
"geometry": {
28+
"coordinates": [
29+
[
30+
-100,
31+
41
32+
],
33+
[
34+
-99,
35+
41
36+
]
37+
],
38+
"type": "MultiPoint"
39+
}
40+
},
41+
{
42+
"type": "Feature",
43+
"properties": {},
44+
"geometry": {
45+
"coordinates": [
46+
[
47+
-100,
48+
42
49+
],
50+
[
51+
-100,
52+
43
53+
]
54+
],
55+
"type": "LineString"
56+
}
57+
},
58+
{
59+
"type": "Feature",
60+
"properties": {},
61+
"geometry": {
62+
"coordinates": [
63+
[
64+
[
65+
-100,
66+
44
67+
],
68+
[
69+
-100,
70+
45
71+
]
72+
],
73+
[
74+
[
75+
-99,
76+
44
77+
],
78+
[
79+
-99,
80+
45
81+
]
82+
]
83+
],
84+
"type": "MultiLineString"
85+
}
86+
},
87+
{
88+
"type": "Feature",
89+
"properties": {},
90+
"geometry": {
91+
"coordinates": [
92+
[
93+
[
94+
-100,
95+
46
96+
],
97+
[
98+
-100,
99+
47
100+
],
101+
[
102+
-99,
103+
47
104+
],
105+
[
106+
-99,
107+
46
108+
],
109+
[
110+
-100,
111+
46
112+
]
113+
]
114+
],
115+
"type": "Polygon"
116+
}
117+
},
118+
{
119+
"type": "Feature",
120+
"properties": {},
121+
"geometry": {
122+
"coordinates": [
123+
[
124+
[
125+
[
126+
-100,
127+
48
128+
],
129+
[
130+
-100,
131+
49
132+
],
133+
[
134+
-99,
135+
49
136+
],
137+
[
138+
-99,
139+
48
140+
],
141+
[
142+
-100,
143+
48
144+
]
145+
]
146+
],
147+
[
148+
[
149+
[
150+
-100,
151+
50
152+
],
153+
[
154+
-100,
155+
51
156+
],
157+
[
158+
-99,
159+
51
160+
],
161+
[
162+
-99,
163+
50
164+
],
165+
[
166+
-100,
167+
50
168+
]
169+
]
170+
]
171+
],
172+
"type": "MultiPolygon"
173+
}
174+
}
175+
]
176+
}
177+
}
178+
},
179+
"layers": [
180+
{
181+
"id": "all",
182+
"type": "symbol",
183+
"source": "geojson",
184+
"layout": {
185+
"text-field": [
186+
"geometry-type"
187+
]
188+
}
189+
},
190+
{
191+
"id": "all-lines",
192+
"type": "line",
193+
"source": "geojson"
194+
},
195+
{
196+
"id": "circle1",
197+
"type": "circle",
198+
"source": "geojson",
199+
"filter": [
200+
"==",
201+
[
202+
"geometry-type"
203+
],
204+
"Point"
205+
],
206+
"paint": {
207+
"circle-color": "black"
208+
}
209+
},
210+
{
211+
"id": "circle2",
212+
"type": "circle",
213+
"source": "geojson",
214+
"filter": [
215+
"==",
216+
[
217+
"geometry-type"
218+
],
219+
"MultiPoint"
220+
],
221+
"paint": {
222+
"circle-color": "red"
223+
}
224+
},
225+
{
226+
"id": "circle3",
227+
"type": "circle",
228+
"source": "geojson",
229+
"filter": [
230+
"==",
231+
[
232+
"geometry-type"
233+
],
234+
"LineString"
235+
],
236+
"paint": {
237+
"circle-color": "green"
238+
}
239+
},
240+
{
241+
"id": "circle4",
242+
"type": "circle",
243+
"source": "geojson",
244+
"filter": [
245+
"==",
246+
[
247+
"geometry-type"
248+
],
249+
"MultiLineString"
250+
],
251+
"paint": {
252+
"circle-color": "blue"
253+
}
254+
},
255+
{
256+
"id": "circle5",
257+
"type": "circle",
258+
"source": "geojson",
259+
"filter": [
260+
"==",
261+
[
262+
"geometry-type"
263+
],
264+
"Polygon"
265+
],
266+
"paint": {
267+
"circle-color": "yellow"
268+
}
269+
},
270+
{
271+
"id": "circle6",
272+
"type": "circle",
273+
"source": "geojson",
274+
"filter": [
275+
"==",
276+
[
277+
"geometry-type"
278+
],
279+
"MultiPolygon"
280+
],
281+
"paint": {
282+
"circle-color": "orange"
283+
}
284+
}
285+
]
286+
}

0 commit comments

Comments
 (0)