[OpenLayers-Dev] selectFeature's selectStyle cannot accept propertyStyle?

BERÉNYI Attila aberenyi at gislab.hu
Mon Jul 30 11:56:03 PDT 2012


Hi,

thank you for your response, it seems like I have not been clear enough.
If every single vector feature has its own style, the layer's styleMap
object cannot be used (it looks like it is ignored, check here:
http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle-1.html) that's
why I try to use selectStyle.
I've update the original example as well:
http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html.

BR,
Attila

2012/7/30 Alexandre Dubé <adube at mapgears.com>

>  Hi,
>
>   Instead of defining a selectStyle in the control, you could try setting
> a styleMap to your layer object.  This example should point you to the
> right direction since it uses a '${type}' symbolizer value and a select
> control :
>
>   http://openlayers.org/dev/examples/graphic-name.html
>
> HTH,
>
> Alexandre
>
> P.S. Btw, this question would have been more suitable for the users
> mailing list.
>
>
>
> On 12-07-30 05:52 AM, BERÉNYI Attila wrote:
>
> Hi!
>
>  I wanted to use the selectFeature control's selectStyle property to
> display a property-based label for the selected features, however, it seems
> that the selectStyle property doesn't support property-based styling.
> Example here:
> http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html
>
>  Is this a bug or am I doing something wrong?
>
>  BR,
> Attila
>
>
> _______________________________________________
> Dev mailing listDev at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>


-- 
BERÉNYI Attila, PhD
ügyvezető igazgató

GISLab Hungary Kft.
1031 Budapest, Kadosa utca 59.
+36 20 457 1800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120730/8a225469/attachment.html>


More information about the Dev mailing list