[OpenLayers-Users] Showing the number features on a cluster
marker
Eric Lemoine
eric.lemoine at camptocamp.com
Sat Feb 20 13:00:27 EST 2010
On Wednesday, February 17, 2010, Amritayan Nayak <amrit08 at gmail.com> wrote:
> Hi,
>
> I want to show the number of features within a cluster on the clustered marker that replaces the individual points. This functionality is supported by the marker manager provided with Google API. Is there a way of doing it in Openlayers ?
cluster features have an attribute named "count", so defining a style
with label:"${count}" should do what you want. You can start from the
strategy-cluster example, and add the aboe style property.
Cheers,
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list