从视口外的隐藏点停止地图

时间:2015-06-24 16:37:06

标签: javascript gis openlayers-3

有没有办法阻止OL3仅显示视口内的点?特别是在我的多边形上。我有多边形被剪裁,因为有些点在视口之外,我需要缩小以显示整个多边形。

1 个答案:

答案 0 :(得分:0)

Figured it out - turns out you can make a square shaped polygon with 4 points fine, which I had done. But to avoid the problem I was having you need to add the first point again as a fifth point.