You can get all layers from your map, and remove them from the map. To avoid removing the tile layer (background), filter with if(layer.options.pane ...
確定! 回上一頁