Skip to content

Commit 9628b3d

Browse files
committed
call resetFeature in addFeature to check whether or not a feature should be rendered on map or not for features' first time rendering
1 parent 1b9834e commit 9628b3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/map-feature.js

+2
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ export class MapFeature extends HTMLElement {
230230
mapmlvectors.layerBounds = M.getBounds(this._layer._content);
231231
// update map's zoom limit
232232
this._map._addZoomLimit(mapmlvectors);
233+
// TODO: can be set as a handler of featureLayer
234+
mapmlvectors._resetFeatures();
233235
L.extend(mapmlvectors.options, mapmlvectors.zoomBounds);
234236
}
235237
}

0 commit comments

Comments
 (0)