Skip to content

Commit 2b5166f

Browse files
authored
Merge pull request #1440 from OpenGeoscience/pattern-geojson
fix: Allow patterns to pass through the geojsonReader
2 parents ef2829f + b8c01f3 commit 2b5166f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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)