Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new maps API #197

Merged
merged 13 commits into from
Sep 22, 2021
Merged

new maps API #197

merged 13 commits into from
Sep 22, 2021

Conversation

beto-rodriguez
Copy link
Owner

@beto-rodriguez beto-rodriguez commented Sep 21, 2021

Currently there is no easy way to add visuals to a geo map chart, also there is no way to animate the map when the chart data changes, this new API fixes both issues.

Breaking changes

Instead of

myMap.Values =  new Dictionary<string, double>
{
    ["mex"] = 10,
    ["ind"] = 12,
    ["kor"] = 10
};

Now we must:

myMap.Shapes =  new ObservableCollection<IMapShape>
{
    new HeatLand { Name = "mex", Value = 10 },
    new HeatLand { Name = "ind", Value = 12 },
    new HeatLand { Name = "kor", Value = 10 }
};

And every time we add/remove a new IMapShape to our collection or the Value property changes, the map will animate the change.

mapanim

@beto-rodriguez beto-rodriguez merged commit 1ec6a70 into master Sep 22, 2021
@beto-rodriguez beto-rodriguez deleted the new-maps-api branch September 26, 2021 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant