From 43f78f085f139ed5cc9e7b4c38f03e8271c45f95 Mon Sep 17 00:00:00 2001 From: Peter Rushforth Date: Wed, 29 Oct 2025 16:38:51 -0400 Subject: [PATCH] Fix rendering bug for simple feature layers --- src/mapml/layers/MapFeatureLayer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mapml/layers/MapFeatureLayer.js b/src/mapml/layers/MapFeatureLayer.js index 1169ac1b6..eeea68ac5 100644 --- a/src/mapml/layers/MapFeatureLayer.js +++ b/src/mapml/layers/MapFeatureLayer.js @@ -171,6 +171,10 @@ export var MapFeatureLayer = FeatureGroup.extend({ onAdd: function (map) { this._map = map; + // Re-append container to pane if it was removed + if (this._container && !this._container.isConnected && this.options.pane) { + this.options.pane.appendChild(this._container); + } FeatureGroup.prototype.onAdd.call(this, map); if (this._context === 'static') { this._validateRendering();