您是要显示单个点,还是要显示一个大框?
显示 50,000 个点会很多,如果您缩小远距离,使用一些集群算法可能会很聪明,请参阅http://openlayers.org/dev/examples/strategy-cluster-threshold.html
添加一个盒子只需将多边形添加到矢量图层,请参阅http://openlayers.org/dev/examples/boxes-vector.html
在你的情况下,它可能是这样的:
var map = new OpenLayers.Map('map');
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'} );
var boxes = new OpenLayers.Layer.Vector( "Boxes" );
var center = OpenLayers.Geometry.Point(179.3333,65.5000);
var bounds = OpenLayers.Geometry.Polygon.createRegularPolygon(center, 0.3, 4, 0);
var box = new OpenLayers.Feature.Vector(bounds.toGeometry());
boxes.addFeatures(box);
map.addLayers([ol_wms, boxes]);
map.zoomToMaxExtent();
然后,想办法定义100x100公里(我的0.3度不行),给矢量图层加一个stylemap