-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hey folks, could you please provide an example on how to build complex AzureMapsControl.Components.Atlas.Expression during clustering.
I'm doing a POC for migrating from pure JS to Blazor, and I've stumbled upon the task of converting datasource expressions.
The things I do in JS:
- Different valueGetter based on isCluster:
['case', isCluster, ['get', 'cluster_hits'], ['get', 'hits']]; - Is cluster:
isCluster = ['has', 'point_count']; - Specify aggregation, f.e. sum:
['+', valueGetter] - Convert to 'boss' view, leaving only 2 digits for fraction
The JS constructs look quite readable; at the same time I could not build anything close using Blazor wrapper.
The docs show straightforward value getter as of now.
Thanks,
Nik
Metadata
Metadata
Assignees
Labels
No labels