[英]Display Features on OpenLayers Vector only with certain zoom level
如何根据缩放级别在矢量图层上显示要素?
例如:我想只在我缩放两次时才能看到矢量图层上的特征。
提前致谢!
看一下这个文档
您也可以使用minResolution和maxResolution,但似乎使用scale更好。
minScale - float -- the minimum scale value at which the layer should display
maxScale - float -- the maximum scale value at which the layer should display
maxResolution - float -- the maximum resolution value at which the layer should display
minResolution - float -- the minimum resolution value at which the layer should display
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.