[OpenLayers-Users] Grouping Features into "one" feature using Styles or other means

Asle Benoni asle.benoni at gmail.com
Tue Oct 13 03:44:57 EDT 2009


Hi,
I had a similar problem. I have over 6000 markers in a page with popups and
tried different solutions. Since I wanted a popup for every marker, using
WFS was just killing my page. I ended up (with great help from CampToCamp)
with a solution of getting the layers as WMS and using a WMS getFeature call
on click so that when I click on a marker it queries GeoServer for the
features. Of course a small delay sometimes but the speed is quite good
overall. I looked into strategy cluster (
http://openlayers.org/dev/examples/strategy-cluster.html) which seems nice
but I am a newbie so I did not get it. But it seems like a very good
solution.
Anyway you can take a look at my page (not finished!) with over 6000 markers
(dev server for now) http://naturkart.no/dev/

/asle benoni

2009/10/6 Jonathan Sawyer <jon at gina.alaska.edu>

> Hi everyone,
>
> I have a feature class of points that displays a breadcrumb trail of GPS
> points for a target. When zoomed out to the full extent of the map,
> OpenLayers renders 1000+ points in a tiny little area, thus reducing
> performance of my application. Is there a way I can tell OpenLayers to
> render just one point for a bunch of points within a given radius of the
> point? For example, when zoomed out to the full extent, I would rather have
> 1 to 3 points rendered rather than 1000+, but then be able to see every
> point applicable when zoomed in.
>
> Thanks in advance for any help.
>
> Jon
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091013/6fadf6a5/attachment.html


More information about the Users mailing list