From 5947874ec407717f79d95d9a8485cd88a87f818f Mon Sep 17 00:00:00 2001 From: "Calvin W. Metcalf B.S" Date: Mon, 12 May 2025 09:02:48 -0400 Subject: [PATCH 1/2] raster support --- lib/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/index.js b/lib/index.js index 81e3b09..b06fa01 100644 --- a/lib/index.js +++ b/lib/index.js @@ -146,6 +146,7 @@ export default class Layer extends EE.EventEmitter { return out; } _getRules(opt) { + console.log('this.rules', this.rules) if (!this.rules) { return false; } @@ -199,6 +200,9 @@ export default class Layer extends EE.EventEmitter { if (rules) { out.layer.style.rules = rules; } + if (rules.simple) { + out.layer.style = rules.styles.style; + } out.layer.query.where = query; switch (type) { case 'line': @@ -210,6 +214,9 @@ export default class Layer extends EE.EventEmitter { case 'poly': out.layer.query.select.type = 'geo.poly'; break; + default: + out.layer.query.select.type = `geo.${type}`; + break; } if (this._sort) { out.layer.style.orderBy = this._sort; From 0a2655de4e5df7da2237a2de213a7b8feabc2d3d Mon Sep 17 00:00:00 2001 From: "Calvin W. Metcalf B.S" Date: Wed, 14 May 2025 10:12:47 -0400 Subject: [PATCH 2/2] remove console log --- lib/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index b06fa01..43a80ee 100644 --- a/lib/index.js +++ b/lib/index.js @@ -146,7 +146,6 @@ export default class Layer extends EE.EventEmitter { return out; } _getRules(opt) { - console.log('this.rules', this.rules) if (!this.rules) { return false; }