OpenLayer 清除 测量图层overlay

 function clearMeasure() {
        measureSourceLay.clear();
        map.removeLayer(measureLay);
        map.getOverlays().clear();//关键点
        map.removeInteraction(drawLineControl);
        map.removeInteraction(drawAreaControl);
    }

猜你喜欢

转载自blog.csdn.net/a571574085/article/details/87965776