ThinkGeo.com    |     Documentation    |     Premium Support

CustomColumnFetch event

How do I force CustomColumnFetch event to raise ?


map.refresh() is not forcing it.


I have ClassBreakStyle applied on a map. I want to raise customColumnFetch manually,  so that I can reset the custom values /colors on the map dynamically..



Murty,


Thanks for your post and welcome you to ThinkGeo Map Suite Desktop Forum!


Basically, when you call the map.refresh, this event will OR will not be fired, it depends on all the data (column data) you need have already exists in the target FeatureSouce. We provide a HowDoI sample showing the usage of this event.
HowDoIsamples\ Feature Layers\ Add my own custom data to a feature layer
 
If you want to raise the event manually, you can call any APIs in FeatureSource which need to pass in the returningColumnNames, in which you can pass in a columName which not exists in the FeautureSource like as following API.

public Collection<Feature> GetFeaturesByIds(IEnumerable<string> ids, IEnumerable<string> returningColumnNames)

 

If I am not clear just feel free to let me know.
 
Thanks.
 
Yale