310 reputation
8
bio website foreconinc.com
location Phoenix, AZ
age
visits member for 11 months
seen Apr 22 at 20:37
stats profile views 9

GIS Analyst/programmer for a forestry and natural resource consultant.


Feb
27
awarded  Critic
Jan
12
accepted Openlayers - Cloned features get style from original feature
Jan
11
comment Openlayers - Cloned features get style from original feature
CaptDragon - I was able to solve the problem using a different approach. Thank you for your comments and assistance!
Jan
11
answered Openlayers - Cloned features get style from original feature
Jan
10
comment Openlayers - Cloned features get style from original feature
Thanks again CaptDragon, unfortunately this results in the same behavior as when I started. The style applied to the new vector layer features carries over to the original WFS layer. Some how the copied (or cloned) features are connected and keep picking up each others styling. I have tried assigning new featureID's to the vector features but I cannot break the pointer that keeps looking at the WFS layer.
Jan
10
comment Openlayers - Cloned features get style from original feature
Thanks Kyle. That was a great suggestion and partially solved the problem. After adding your script this is the behavior now: 1) After the new vector loads it is styled correctly. 2) When I turn off the new vector the original WFS layer is styled correctly. 3) When I turn the original WFS layer off and then on it shows all the stands that were copied to the new vector with the new vectors style. 4) Then if I turn the new vector on and off the original WFS is styled correctly again.
Jan
10
comment Openlayers - Cloned features get style from original feature
I have noticed that cloned features share the same featureID as the original. Is it possible that the cloned featureID's are still assigned to the original layer and are using the style from that layer?
Jan
10
awarded  Commentator
Jan
10
comment Openlayers - Cloned features get style from original feature
@CaptDragon - Thank you for taking the time to look at my issue. I have added the complete code above.
Jan
10
revised Openlayers - Cloned features get style from original feature
Complete Code
Jan
10
comment OpenLayers.Layer.clone() not returning a unique Layer object
Could you please provide the syntax for how to clone an existing layers style? Thanks
Jan
10
revised Openlayers - Cloned features get style from original feature
added 5 characters in body
Jan
10
revised Openlayers - Cloned features get style from original feature
deleted 7 characters in body
Jan
10
comment Openlayers - Cloned features get style from original feature
I have tried it but cannot seem to get the syntax correct. I tried: var cloneStyle = layerFeatureArray[x].style.clone(); but it returns "undefined" Thanks
Jan
10
asked Openlayers - Cloned features get style from original feature
Dec
27
accepted Geoserver does not see new layers
Dec
21
answered Geoserver does not see new layers
Dec
21
asked Geoserver does not see new layers
Dec
16
revised OpenLayers - Get features inside a polygon
added 13 characters in body
Dec
16
accepted OpenLayers - Get features inside a polygon