将哈希模式应用于 openlayers 3 中的多边形

Apply hash pattern to polygon in openlayers 3

我试图找到一种在 OpenLayers-3 中将高级填充样式应用于多边形的方法。我想找到一种方法来用 OL3 重现以下样式:

Apply hash pattern to polygon in openlayers

http://dev.openlayers.org/sandbox/ossipoff/openlayers/examples/graphicfill.html

OL2方案使用的是SLD格式,OL3中好像没有实现。

我从 boundless geo 找到了一篇很棒的文章,讨论了 ol.style.Style 的几何选项,它允许提供高级样式。此选项很棒,但使用此技术将哈希模式应用于多边形会严重影响性能。

http://boundlessgeo.com/2015/04/geometry-based-styling-openlayers-3/

有什么建议吗? 谢谢!

这还不受支持,但请参阅 https://github.com/openlayers/ol3/issues/2208 以获得建议