OpenLayers.Layer.Text和边界框 [英] OpenLayers.Layer.Text and bounding box

查看:507
本文介绍了OpenLayers.Layer.Text和边界框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在IE中显示很多点(300/400),并在地图上弹出这些点. 我尝试使用OpenLayers.Layer.Vectors,它可以工作,但是速度太慢. 所以我尝试了OpenLayers.Layer.Text,但是这个似乎没有发送BBOX参数.所以我想我应该发回包含地图所有点的文件,但是大约是35000点...

I would like to display a lot of point (300/400) in IE with popup on them on a map. I tried to use OpenLayers.Layer.Vectors, it works but is far too slow. So I tried OpenLayers.Layer.Text, but this one doesn't seem to send the BBOX parameter. So I presume I should send back the file containing all the points of the map but that's something like 35000 points ...

您做了这么多的事情,它还足够快吗?

Have you ever done with that much point, is it still fast enough ?

还有另一种方法可以做到这一点吗? (我不能使用自己的服务器来响应WMS和Vector图层,而不能使用外部服务器(例如mapguide或其他服务器).

Is there another way to be able to do this ? (I'm using my own server to respond to WMS and Vector layer and using an external server like mapguide or other is not an option).

非常感谢您的回答!

推荐答案

35000点是Vector图层的大量数据.根据我的经验,显示超过数百个点几乎总是会导致Internet Explorer的性能问题.

35000 points is a lot of data for a Vector layer. From my experience displaying more than couple of hundreds of points almost always causes performance issues in Internet Explorer.

在有大量数据的情况下,典型的解决方案是将其显示在WMS层中,并使用WMSGetFeatureInfo或常规的WFS搜索来获取有关要素的信息.

Typical solution in situation when you have a lot of data is to display it in a WMS layer and use WMSGetFeatureInfo or usual WFS search to fetch information about features.

这篇关于OpenLayers.Layer.Text和边界框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆