Thanks a lot for this answer<br>Yes, I gave it a try with the getCentroid() method, but what I do not get is how to constrain a rule so as to display a centroid instead of a polygon, without adding the centroid (as a new feature) to the layer. <br>
If this is not possible, I think the best option would be to load polygons + centroid features from the server and switch the display between the two using the &#39;display&#39; property. I would like to avoid this as it would imply quite a lot of additional client-side processing in my case.<br>
Cheers<br>Christophe<br><br><br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 9:12 AM, Pierre Giraud <span dir="ltr">&lt;<a href="mailto:pierre.giraud@camptocamp.com">pierre.giraud@camptocamp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>A &quot;getCentroid&quot; method is available for geometries. It should suit your needs.<br>
<br>Regards,<br>Pierre<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Apr 26, 2010 at 11:53 PM, christophe g. <span dir="ltr">&lt;<a href="mailto:christophe.geiser@gmail.com" target="_blank">christophe.geiser@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi all<br>
I am trying to do something similar as what was described in this post back<br>
in .... 2008.<br>
<br>
The scenario is the following :<br>
I have thematic maps (polygons with style rules for rendering different<br>
colors for indictors attached to the geometry) for which I wish to allow<br>
users to swap the rendering to proportional symbols (e.g a circle with a<br>
size/color corresponding to indicator values).<br>
<br>
One way to achieve this would be to get centroid information for each<br>
polygons from the server and render this information as a new layer.<br>
However, I would clearly prefer a client-side rule-based scenario with a<br>
rule to be interpereded as :<br>
show the centroid of the polygon feature in case of proportional symbols -<br>
instead of the polygon itself.<br>
<br>
Is there a way to achieve this?<br>
Thanks and cheers<br>
Christophe<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Show-polygon-vectors-as-points-tp1829267p4965296.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Show-polygon-vectors-as-points-tp1829267p4965296.html</a><br>



</font><div>Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
</div><div><div></div><div>Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>Pierre GIRAUD<br>Géomaticien, Analyste<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex <br><br>Tel : 00 33 4 79 44 44 93<br>


Mail : <a href="mailto:pierre.giraud@camptocamp.com" target="_blank">pierre.giraud@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a>  <br>
</blockquote></div><br>