I am converting the 2.0 code to 3.0 but have some serious performance issues so I think I'm not doing it right.
I have a CustomOverlays with a ShapeFileFeatureLayer with about 5000 polygons. That goes on top of a google map. I have about 22 valueStyle on this layer.
So I'm trying to have 22 different AreaStyles depending on some data I get from the database. So the result would be a map with 22 regions who have different colors. (not all polygons are covered, only about 800 in this 22 region example)
To achieve this I'm using the FeatureSource.CustomColumnFetch event and a RequiredColumnNames that isn't in the shpae file. This seems to be slow. Slower then the SymbolValueRenderer I used to use? Is this normal? My CPU goes to 100% for minutes but eventually it shows the map correctly.
How much does this event get called? Once for each polygon for each CustomStyle? Is this the way to do what I want to do with the new version?
Thanks!