I have a feature with a value-style, where each valuestyle has a custom WellPointStyle assigned to a value.
Now i want to highlight a feature when it is clicked in the map (Show it in the same way as when unselected, but with a different color). I used a MapClick-event, determined the nearest feature to the click and put in into a separate hightlight-layer. That works ok. But the style the feature is shown in does not match the style which is was shown in when not selected.
Example:
In my valuestyle i have assigned the value “A” to WellPointStyle(90,…), the value “B” to WellPointStyle(91,…)
Now when i click a feature with value “A” it is higlighted, but not with the WellPointStyle(90,…), but with the style defined in my hightlight-layer.
Question:
Is there a method to find out which style is responsible for rendering a specific feature in the current ZoomLevelset according to the zoomlevelset’s style-definition? Or do i have to “copy” the whole ZoomLevelSet from my FeatureLayer to my HighlightLayer, thereby changing the color in all styles?
Regards,
Andreas