[OpenLayers-Users] Cluster strategy and extract attributes?
j.cook at oxfordarch.co.uk
Thu Dec 11 11:06:29 EST 2008
Thanks for the speedy response Chris, what you're saying makes sense to me now!
What I am hoping to achieve eventually is that when a cluster represents more than one point, the popup says "this cluster represents x sites. Please zoom in for more information" but when a cluster represents a single point, the popup picks up the attributes for that point. Is that even possible?
Senior IT Support and Development
Oxford Archaeology (North)
----- Original Message -----
From: "Christopher Schmidt" <crschmidt at metacarta.com>
To: "Joanne Cook" <j.cook at oxfordarch.co.uk>
Cc: "users" <users at openlayers.org>
Sent: Thursday, 11 December, 2008 16:02:23 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [OpenLayers-Users] Cluster strategy and extract attributes?
On Thu, Dec 11, 2008 at 03:44:52PM +0000, Joanne Cook wrote:
> Hi Chris,
> Yes, you're absolutely right I should provide some code:
So, the problem is unrelated to extractAttributes, which defaults to
true. Instead, the problem is that you're expecting that clusters have
attributes. Clusters do not have attributes -- because clustered
features may have different properties.
You can take feature.cluster.attributes, I suppose, but its not clear
to me what you're expecting here.
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
More information about the Users