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

Christopher Schmidt crschmidt at metacarta.com
Wed Oct 7 07:38:59 EDT 2009


On Tue, Oct 06, 2009 at 04:27:21PM -0800, Jonathan Sawyer wrote:
> Christopher et al,
> 
> Clustering works for me :) However, is there a way to turn off clustering
> dynamically? I.e., call a function to deactivate it, zoom in or out without
> clustering, then turn it back on, all without having to drop and reload
> layers?

Not really. SOme people have done it though, I believe. Though I'm not sure
why you'd want to deactivate-zoom-reactivate? That doesn't make sense to me,
since on zoom, the clusters will recalculate...

-- Chris 

> Thanks again in advance!
> 
> Jon
> 
> On Mon, Oct 5, 2009 at 10:27 PM, Christopher Schmidt <
> crschmidt at metacarta.com> wrote:
> 
> > On Mon, Oct 05, 2009 at 04:07:27PM -0800, Jonathan Sawyer wrote:
> > > 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.
> >
> > Clustering.
> >
> > http://openlayers.org/dev/examples/strategy-cluster.html
> >
> > > Thanks in advance for any help.
> > >
> > > Jon
> >
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> >
> >
> 
> 
> -- 
> Jonathan Sawyer
> Geographic Information Network of Alaska (GINA)
> University of Alaska Fairbanks

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list