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é <[email protected]>

>  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 
> [email protected]http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
>
> --
> Alexandre Dubé
> Mapgearswww.mapgears.com
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> 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
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to