[OpenLayers-Users] Re: stylemap overrides onselect feature style

Tue Topholm tt at sugee.dk
Mon Jul 18 18:59:17 EDT 2011


Did solve it with this:

                    			var styleMap = new OpenLayers.StyleMap(
                    			{
                    				'select':
OpenLayers.Util.applyDefaults({pointRadius:
16},OpenLayers.Feature.Vector.style['select']),
                    				'default':
OpenLayers.Util.applyDefaults({pointRadius:
16},OpenLayers.Feature.Vector.style['default'])
                    			
                    			
                    			});

--

Med venlig hilsen / Kind regards

Tue Topholm
Sugee
Tlf: +45 32 13 32 32
W: http://www.sugee.dk



2011/7/19 Tue Topholm <tt at sugee.dk>:
> Hi All
>
> I'm using this to make the pointRadius bigger:
>
>                                        var styleMap = new
> OpenLayers.StyleMap(OpenLayers.Util.applyDefaults(
>                                                        {pointRadius: 16},
>                                                                        OpenLayers.Feature.Vector.style["default"]));
>
> But when I select a feature the feature is not highlighed with the
> blue standard style, why is that, and how can I override it, so it
> does?
>
> --
>
> Med venlig hilsen / Kind regards
>
> Tue Topholm
> Sugee
> Tlf: +45 32 13 32 32
> W: http://www.sugee.dk
>


More information about the Users mailing list