No. This is not working as intended...

That works only if the feature.vector doesn't have a style applied. If it does, 
the layer's render intents are not used, and each feature.vectors remains the 
same.


Could this be a bug?





Sent from Alto - altomail.com


From: [email protected]<[email protected]>
To: [email protected]<[email protected]>
cc: [email protected]<[email protected]>
Sent: Monday, August 26, 2013
Subject: Re: [OpenLayers-Users] Can't define hover behavior on a Feature.Vector 
or a Layer.Vector

On Mon, Aug 26, 2013 at 12:19 PM, [email protected]
<[email protected]> wrote:
> If an OpenLayers.StyleMap was supported I could define a renderIntent and
> therefore maybe implement the select behaviour.

you can use the style for default in the stylemap that you can pass to
vector layer
var layer_style = new OpenLayers.StyleMap({
            "default": new
OpenLayers.Style(OpenLayers.Util.applyDefaults({... })
            "select": new OpenLayers.Style(OpenLayers.Util.applyDefaults({... })
        })

;var vectorLayer = new OpenLayers.Layer.Vector("prach layer", {
styleMap: layer_style,
renderers: ['SVG', 'VML', 'Canvas']
})

;Diego Guidi
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to