-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip pattern layer when pattern is missing
No error or warning is printed for missing patterns. fix #4660
- v3.9.0
- v3.9.0-beta.1
- v3.8.0
- v3.8.0-beta.1
- v3.7.0
- v3.7.0-beta.1
- v3.6.0
- v3.6.0-beta.1
- v3.5.2
- v3.5.1
- v3.5.0
- v3.5.0-beta.1
- v3.4.0
- v3.4.0-beta.1
- v3.3.0
- v3.3.0-beta.1
- v3.2.0
- v3.2.0-beta.1
- v3.1.2
- v3.1.1
- v3.1.0
- v3.1.0-beta.1
- v3.0.1
- v3.0.0
- v3.0.0-rc.2
- v3.0.0-rc.1
- v3.0.0-beta.5
- v3.0.0-beta.4
- v3.0.0-beta.3
- v3.0.0-beta.2
- v3.0.0-beta.1
- v2.15.0
- v2.15.0-beta.1
- v2.14.1
- v2.14.0
- v2.14.0-beta.1
- v2.13.0
- v2.13.0-beta.1
- v2.12.1
- v2.12.0
- v2.12.0-beta.1
- v2.11.1
- v2.11.1-beta.1
- v2.11.0
- v2.11.0-beta.2
- v2.11.0-beta.1
- v2.10.0
- v2.10.0-beta.1
- v2.9.2
- v2.9.1
- v2.9.0
- v2.9.0-beta.2
- v2.9.0-beta.1
- v2.8.2
- v2.8.1
- v2.8.0
- v2.8.0-beta.1
- v2.8.0-alpha.4
- v2.8.0-alpha.3
- v2.8.0-alpha.2
- v2.7.1
- v2.7.0
- v2.7.0-beta.1
- v2.6.1
- v2.6.0
- v2.6.0-beta.2
- v2.6.0-beta.1
- v2.5.1
- v2.5.0
- v2.5.0-beta.1
- v2.4.1
- v2.4.0
- v2.4.0-beta.1
- v2.3.1
- v2.3.0
- v2.3.0-beta.1
- v2.2.0
- v2.2.0-beta.1
- v2.1.1
- v2.1.0
- v2.1.0-beta.1
- v2.0.1
- v2.0.0
- v2.0.0-alpha.18
- v2.0.0-alpha.17
- v2.0.0-alpha.16
- v2.0.0-alpha.15
- v2.0.0-alpha.14
- v2.0.0-alpha.13
- v2.0.0-alpha.12
- v2.0.0-alpha.11
- v2.0.0-alpha.10
- v2.0.0-alpha.9
- v2.0.0-alpha.8
- v2.0.0-alpha.7
- v2.0.0-alpha.6
- v2.0.0-alpha.5
- v2.0.0-alpha.4
- v2.0.0-alpha.3
- v2.0.0-alpha.2
- v1.13.3
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.0
- v1.12.0-beta.1
- v1.11.1
- v1.11.0
- v1.11.0-beta.1
- v1.10.2
- v1.10.1
- v1.10.0
- v1.10.0-beta.1
- v1.9.1
- v1.9.0
- v1.9.0-beta.1
- v1.8.1
- v1.8.0
- v1.8.0-beta.1
- v1.7.0
- v1.7.0-beta.1
- v1.7
- v1.6.1
- v1.6.0
- v1.6.0-beta.1
- v1.5.1
- v1.5.1-beta
- v1.5.0
- v1.5.0-beta.1
- v1.4.1
- v1.4.0
- v1.4.0-beta.2
- v1.4.0-beta.1
- v1.3.2
- v1.3.1
- v1.3.0
- v1.3.0-beta.1
- v1.2.1
- v1.2.0
- v1.2.0-beta.1
- v1.1.1
- v1.1.0
- v1.1.0-beta.2
- v1.1.0-beta.1
- v1.0.0
- v0.54.1
- v0.54.0
- v0.54.0-beta.2
- v0.54.0-beta.1
- v0.53.1
- v0.53.0
- v0.53.0-beta.1
- v0.53
- v0.52.0
- v0.52.0-beta.2
- v0.52.0-beta.1
- v0.51.0
- v0.51.0-beta.2
- v0.51.0-beta.1
- v0.50.0
- v0.50.0-beta.1
- v0.49.0
- v0.49.0-beta.1
- v0.48.0
- v0.48.0-beta.1
- v0.47.0
- v0.47.0-beta.1
- v0.46.0
- v0.46.0-beta.1
- v0.46-beta.1
- v0.45.0
- v0.45.0-beta.1
- v0.44.2
- v0.44.1
- v0.44.0
- v0.43.0
- v0.43.0-beta.1
- v0.42.2
- v0.42.1
- v0.42.0
- v0.41.0
- v0.40.1
- v0.40.0
- v0.39.1
- v0.39.0
- v0.38.0
- v0.38.0-dev
- v0.0.38-dev
- v0.0.2-dev
- v0.0.1-dev
- v0.0.0
- v0.0.0-dev
- style-spec@14.9.1
- style-spec@14.9.0
- style-spec@14.9.0-beta.1
- style-spec@14.8.0
- style-spec@14.8.0-beta.1
- style-spec@14.7.1
- style-spec@14.7.0
- style-spec@14.7.0-beta.1
- style-spec@14.6.0
- style-spec@14.6.0-beta.1
- style-spec@14.5.2
- style-spec@14.5.1
- style-spec@14.5.0
- style-spec@14.5.0-beta.1
- style-spec@14.4.0
- style-spec@14.4.0-beta.1
- style-spec@14.3.0
- style-spec@14.3.0-beta.1
- style-spec@14.2.0
- style-spec@14.2.0-beta.1
- style-spec@14.1.0
- style-spec@14.1.0-beta.1
- style-spec@14.0.0
- style-spec@14.0.0-rc.2
- style-spec@14.0.0-rc.1
- style-spec@14.0.0-beta.4
- style-spec@14.0.0-beta.3
- style-spec@14.0.0-beta.2
- style-spec@14.0.0-beta.1
- style-spec@13.28.0
- style-spec@13.28.0-beta.1
- style-spec@13.27.0
- style-spec@13.27.0-beta.1
- style-spec@13.26.0
- style-spec@13.25.0
- style-spec@13.25.0-beta.2
- style-spec@13.25.0-beta.1
- style-spec@13.24.0
- style-spec@13.24.0-beta.1
- style-spec@13.24.0-alpha.6
- style-spec@13.24.0-alpha.5
- style-spec@13.24.0-alpha.4
- style-spec@13.23.1
- style-spec@13.23.1-beta.1
- style-spec@13.23.0
- style-spec@13.23.0-beta.2
- style-spec@13.23.0-beta.1
- style-spec@13.22.0
- style-spec@13.22.0-beta.1
- style-spec@13.21.0
- style-spec@13.21.0-beta.1
- style-spec@13.20.1
- style-spec@13.20.0
- style-spec@13.20.0-beta.1
- style-spec@13.19.1
- style-spec@13.19.0
- style-spec@13.19.0-beta.1
- style-spec@13.18.1
- style-spec@13.18.0
- style-spec@13.17.1
- style-spec@13.17.0
- style-spec@13.16.0
- style-spec@13.15.0
- style-spec@13.14.0
- style-spec@13.13.1
- style-spec@13.13.0
- style-spec@13.12.0
- style-spec@13.12.0-beta.1
- style-spec@13.11.0
- style-spec@13.11.0-beta.1
- style-spec@13.10.2
- style-spec@13.10.1
- style-spec@13.10.0
- style-spec@13.9.1
- style-spec@13.9.0
- style-spec@13.9.0-beta.1
- style-spec@13.8.0
- style-spec@13.7.2
- style-spec@13.7.2-beta.113.7.2
- style-spec@13.7.2-alpha.1
- style-spec@13.7.1
- style-spec@13.7.0
- style-spec@13.6.0
- style-spec@13.5.0
- style-spec@13.4.0
- style-spec@13.3.0
- style-spec@13.2.1
- style-spec@13.2.0
- style-spec@13.1.1
- style-spec@13.1.0
- style-spec@13.0.1
- style-spec@13.0.0
- style-spec@13.0.0-beta.1
- style-spec@12.0.0
- style-spec@12.0.0-pre.1
- style-spec@11.1.1
- style-spec@11.1.0
- style-spec@11.0.0
- style-spec@10.1.0
- style-spec@10.0.1
- style-spec@10.0.0
- style-spec@9.0.1
- 2.11.0-beta.1
- 1.11.0-beta.1
- 1.2.0-beta.1
- 0.0.0-dev
Showing
10 changed files
with
160 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+108 Bytes
test/integration/render-tests/background-pattern/missing/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
test/integration/render-tests/background-pattern/missing/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": {}, | ||
"sprite": "local://sprites/emerald", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-pattern": "missing" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+600 Bytes
test/integration/render-tests/fill-extrusion-pattern/missing/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
test/integration/render-tests/fill-extrusion-pattern/missing/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256, | ||
"ignored": { | ||
"js": "https://github.com/mapbox/mapbox-gl-js/issues/3327", | ||
"native": "https://github.com/mapbox/mapbox-gl-js/issues/3327" | ||
} | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"property": 20 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ [ -0.0004, 0 ], | ||
[ -0.0002, 0.0002 ], | ||
[ 0.0000, 0 ], | ||
[ -0.0002, -0.0002 ], | ||
[ -0.0004, 0 ] ] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"property": 20 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ [ -0.0000, -0.0002 ], | ||
[ -0.0000, 0.0002 ], | ||
[ 0.0003, 0.0002 ], | ||
[ 0.0003, -0.0002 ], | ||
[ -0.0000, -0.0002 ] ] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": "local://sprites/emerald", | ||
"pitch": 60, | ||
"zoom": 18, | ||
"layers": [ | ||
{ | ||
"id": "extrusion", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"paint": { | ||
"fill-extrusion-pattern": "missing", | ||
"fill-extrusion-height": 10 | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions
53
test/integration/render-tests/fill-pattern/missing/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-10, | ||
-10 | ||
], | ||
[ | ||
-10, | ||
10 | ||
], | ||
[ | ||
10, | ||
10 | ||
], | ||
[ | ||
10, | ||
-10 | ||
], | ||
[ | ||
-10, | ||
-10 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": "local://sprites/emerald", | ||
"layers": [ | ||
{ | ||
"id": "fill", | ||
"type": "fill", | ||
"source": "geojson", | ||
"paint": { | ||
"fill-antialias": false, | ||
"fill-pattern": "missing" | ||
} | ||
} | ||
] | ||
} |