Re: [OpenLayers-Users] SelectFeatureControl invalid when set style to vector?

2009-04-29 Thread shane_china
s-boun...@openlayers.org] > On Behalf Of shane_china > Sent: Wednesday, April 29, 2009 2:38 PM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] SelectFeatureControl invalid when set > style to vector? > > > here is the detail code > > When I construct

Re: [OpenLayers-Users] SelectFeatureControl invalid when set style to vector?

2009-04-29 Thread Kris Geusebroek
09 2:38 PM To: users@openlayers.org Subject: Re: [OpenLayers-Users] SelectFeatureControl invalid when set style to vector? here is the detail code When I construct vecotr like this: var vector = new OpenLayers.Feature.Vector(point); select feature control works well. When the vector was selec

Re: [OpenLayers-Users] SelectFeatureControl invalid when set style to vector?

2009-04-29 Thread shane_china
here is the detail code When I construct vecotr like this: var vector = new OpenLayers.Feature.Vector(point); select feature control works well. When the vector was selected, color changed. But when I construct vector like this : var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.V

Re: [OpenLayers-Users] SelectFeatureControl invalid when set style to vector?

2009-04-29 Thread Christopher Schmidt
On Wed, Apr 29, 2009 at 04:11:30AM -0700, shane_china wrote: > > I followed instructions here > http://openlayers.org/dev/examples/vector-features.html > > Yes, my style successly applyed. But there is another problem. When I use > selectFeature control to select these vectors, these vectors don

[OpenLayers-Users] SelectFeatureControl invalid when set style to vector?

2009-04-29 Thread shane_china
I followed instructions here http://openlayers.org/dev/examples/vector-features.html Yes, my style successly applyed. But there is another problem. When I use selectFeature control to select these vectors, these vectors don't change color. How could I do this to show people the selected effect