I want to delete a polygon on a layer. It works on my localhost, but not on the production server. In production, after calling removeParcel the source gets clear and the feature on this source also been removed. But the polygon boundary is still visible on the map. And an unexpected side effect occurs on zooming in and out, the polygon boundary is not bound to latitude and longitude, instead it has the same height and width as the map viewport.
removeParcel() {
const parcelLayer = map.getParcelLayer(true);
if (parcelLayer) {
parcelLayer.getSource().clear();
}
}
This is before delete occur
[