Hi,
We have a view on database which contains list of Stops with below structure :
StopId, StopType, StopName
StopType can have different values including Bus, Tram, Metro, LightMetro, etc.
We use MsSql2008FeatureLayer to display Stops on the map, based on new requirements, we need to display each stops with different types in different colours. Like => Bus in DarkGreen, Tram in Red and etc
What way do you recommend to style Stops with different types in different colours?
Using InMemoryFeatureLayer for each group of stops makes the control slow when count of stops is more than 1000.
Furthermore, we gave users an ability to edit type of existing stops or add/delete them. We need to display the changes right after any update. Is there any way to do this without reloading the whole layer which could be time consuming if large… ?
Thank you in advance,
Shahin
MsSql2008FeatureLayer Refresh
Hi Shahin,
I think it’s better to continue using the MsSqlFeatureLayer rather than the InMemoryFeatureLayer, then we use the ValueStyles to sort the stops based on the column value. If the performance issue persists, please send us your sample codes and then we can have a further look.
For your other issue, I am guessing the reason you don’t want to redrew the layer is because of the above performance issue. If not, then I am afraid to say I didn’t figure out a good solution for the case.
Any questions, please feel free to let us know.
Thanks,
Troy