Skip to content

Commit b8c01f3

Browse files
committed
fix: Allow patterns to pass through the geojsonReader
Continue support for polygon patterns
1 parent ef2829f commit b8c01f3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/geojsonReader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ var geojsonReader = function (arg) {
6868
strokeWidth: 2,
6969
strokeOpacity: 1,
7070
uniformPolygon: true,
71+
pattern: undefined,
7172
...arg.polygonStyle
7273
}
7374
};

src/webgl/polygonFeature.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ var webgl_polygonFeature = function (arg) {
7878
if (val === undefined) {
7979
val = func(d, idx);
8080
}
81+
if (!val) {
82+
return [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
83+
}
8184
if (val.fillColor === undefined) {
8285
fillColor = util.convertColor(m_this.style.get('strokeColor')(v0, 0, d, idx));
8386
fillColor.a = m_this.style.get('strokeOpacity')(v0, 0, d, idx);

0 commit comments

Comments
 (0)