在 OpenLayers3 多边形中切孔(减去)

Cut holes into OpenLayers3 polygons (subtract)

旧版本的OpenLayers支持将孔洞切割成多边形。参见 donut example

我无法找到 examples or documentation 将此功能用于 OpenLayers3。

如何在 OpenLayers3 多边形中切孔?

使用 appendLinearRing(linearRing) 函数。 http://openlayers.org/en/v3.3.0/apidoc/ol.geom.Polygon.html#appendLinearRing