Skip to content

Commit

Permalink
Update style-spec package, added render test (#5132)
Browse files Browse the repository at this point in the history
* Update style-spec package, added render test

* Update changelog

* Fix typos
  • Loading branch information
HarelM authored Nov 28, 2024
1 parent bde599c commit 8dba921
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- ⚠️ Change drag rotate behavior to be less abrupt around the center ([#5104](https://github.com/maplibre/maplibre-gl-js/pull/5104))
- Fix regression in render world copies ([#5101](https://github.com/maplibre/maplibre-gl-js/pull/5101))
- Fix unwanted roll when motion is interrupted ([#5083](https://github.com/maplibre/maplibre-gl-js/pull/5083))
- Fix `geometry-type` filter expression results ([#5132](https://github.com/maplibre/maplibre-gl-js/pull/5132))
- _...Add new stuff here..._

## 5.0.0-pre.8
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@mapbox/unitbezier": "^0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@mapbox/whoots-js": "^3.1.0",
"@maplibre/maplibre-gl-style-spec": "^22.0.0",
"@maplibre/maplibre-gl-style-spec": "^22.0.1",
"@types/geojson": "^7946.0.14",
"@types/geojson-vt": "3.2.5",
"@types/mapbox__point-geometry": "^0.1.4",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
286 changes: 286 additions & 0 deletions test/integration/render/tests/geometry-type/all-geomteries/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
{
"version": 8,
"center": [-100, 45],
"zoom": 4,
"name": "OpenStreetMap",
"glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
-100,
40
],
"type": "Point"
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
-100,
41
],
[
-99,
41
]
],
"type": "MultiPoint"
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
-100,
42
],
[
-100,
43
]
],
"type": "LineString"
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
[
-100,
44
],
[
-100,
45
]
],
[
[
-99,
44
],
[
-99,
45
]
]
],
"type": "MultiLineString"
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
[
-100,
46
],
[
-100,
47
],
[
-99,
47
],
[
-99,
46
],
[
-100,
46
]
]
],
"type": "Polygon"
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [
[
[
[
-100,
48
],
[
-100,
49
],
[
-99,
49
],
[
-99,
48
],
[
-100,
48
]
]
],
[
[
[
-100,
50
],
[
-100,
51
],
[
-99,
51
],
[
-99,
50
],
[
-100,
50
]
]
]
],
"type": "MultiPolygon"
}
}
]
}
}
},
"layers": [
{
"id": "all",
"type": "symbol",
"source": "geojson",
"layout": {
"text-field": [
"geometry-type"
]
}
},
{
"id": "all-lines",
"type": "line",
"source": "geojson"
},
{
"id": "circle1",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"Point"
],
"paint": {
"circle-color": "black"
}
},
{
"id": "circle2",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"MultiPoint"
],
"paint": {
"circle-color": "red"
}
},
{
"id": "circle3",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"LineString"
],
"paint": {
"circle-color": "green"
}
},
{
"id": "circle4",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"MultiLineString"
],
"paint": {
"circle-color": "blue"
}
},
{
"id": "circle5",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"Polygon"
],
"paint": {
"circle-color": "yellow"
}
},
{
"id": "circle6",
"type": "circle",
"source": "geojson",
"filter": [
"==",
[
"geometry-type"
],
"MultiPolygon"
],
"paint": {
"circle-color": "orange"
}
}
]
}

0 comments on commit 8dba921

Please sign in to comment.