omnivore.wkt.parse("${feature}").removeFrom(map);
I select features by this line omnivore.wkt.parse("${feature}").addTo(map); but when I remove from map doesn't work
this code works but if I don't know delete feature
<c:if test="${not empty mapBean.layers}"> console.log('Kaydedilen featurelar:');
<c:forEach var="layer" items="${mapBean.layers}"> <c:if test="${layer.id==1}"> <c:if test="${not empty layer.features}"> <c:forEach var="feature" items="${layer.features}"> console.log("${feature}");
omnivore.wkt.parse("${feature}").addTo(map); </c:forEach> </c:if> </c:if> </c:forEach> </c:if>