The function that I am trying to work on is: click on a feature and change its color. I tried to approach this by first recreating the feature with custom style:
this gave me the desired shape but it was lost after layer redraw.
Then I tried to use a clone of the feature:
this time the new shape would not disappear but it's not sync with the map, i.e. it does not resize/ move with the map.
I do notice that the following post was about a similar issue. I wonder if there's a way without creating an extra overlay? I could live with the cloned feature thing if that can be put to work.
Any suggestions will be greatly appreciated!