Skip to content

Commit 5e9e7ce

Browse files
committed
Fix rendering bug for simple feature layers
1 parent 14ffe05 commit 5e9e7ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mapml/layers/MapFeatureLayer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ export var MapFeatureLayer = FeatureGroup.extend({
171171

172172
onAdd: function (map) {
173173
this._map = map;
174+
// Re-append container to pane if it was removed
175+
if (this._container && !this._container.isConnected && this.options.pane) {
176+
this.options.pane.appendChild(this._container);
177+
}
174178
FeatureGroup.prototype.onAdd.call(this, map);
175179
if (this._context === 'static') {
176180
this._validateRendering();

0 commit comments

Comments
 (0)