From b8c01f3b1b59003c864e5a199c836a391e0dec89 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 1 Dec 2025 15:55:09 -0500 Subject: [PATCH] fix: Allow patterns to pass through the geojsonReader Continue support for polygon patterns --- src/geojsonReader.js | 1 + src/webgl/polygonFeature.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/geojsonReader.js b/src/geojsonReader.js index b0fcf14a5b..cff95b66cc 100644 --- a/src/geojsonReader.js +++ b/src/geojsonReader.js @@ -68,6 +68,7 @@ var geojsonReader = function (arg) { strokeWidth: 2, strokeOpacity: 1, uniformPolygon: true, + pattern: undefined, ...arg.polygonStyle } }; diff --git a/src/webgl/polygonFeature.js b/src/webgl/polygonFeature.js index a636b08e0f..24a1765f8a 100644 --- a/src/webgl/polygonFeature.js +++ b/src/webgl/polygonFeature.js @@ -78,6 +78,9 @@ var webgl_polygonFeature = function (arg) { if (val === undefined) { val = func(d, idx); } + if (!val) { + return [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + } if (val.fillColor === undefined) { fillColor = util.convertColor(m_this.style.get('strokeColor')(v0, 0, d, idx)); fillColor.a = m_this.style.get('strokeOpacity')(v0, 0, d, idx);