[OpenLayers-Users] Feature Sorting
Jean-Pierre Fiset
jp at fiset.ca
Thu Oct 3 07:38:04 PDT 2013
In OpenLayers 2.x, is there a strategy or a method to add the features to a vector layer in such
a way that the point appear "on top", while the larger polygons are drawn further back? This
behaviour is desired so that when using the SelectFeature control, the points are not "hidden"
behind polygons.
Sorting the features before adding them to a layer seems to do the trick. However, is there an
automatic way to perform this sorting as features are added to the layer?
Thanks,
JP
More information about the Users
mailing list