openlayers基于可视区域更新图层

时间:2021-01-13 04:10:08

For a project we are wishing to use use openlayers. I know how to plot points and have a popup bubble. However since there is going to be quite a lot of points plotted on the map for the UK. What i am wanting to do is send the central point of the viewable area and in the backend send a layer update of all the points in the current viewable area. In openlayers is there anyway of doing this?

对于一个项目,我们希望使用openlayers。我知道如何绘制积分并有弹出泡泡。然而,由于英国地图上会有很多点。我想要做的是发送可视区域的中心点,并在后端发送当前可视区域中所有点的层更新。在开放层中,无论如何都是这样做的?

1 个解决方案

#1


1  

Yes. You can either use a WMS server to serve maps as images, or use the BBOX Strategy to only get the content within the viewport.

是。您可以使用WMS服务器将地图作为图像提供,也可以使用BBOX策略仅获取视口中的内容。

#1


1  

Yes. You can either use a WMS server to serve maps as images, or use the BBOX Strategy to only get the content within the viewport.

是。您可以使用WMS服务器将地图作为图像提供,也可以使用BBOX策略仅获取视口中的内容。