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

Demo to show a possible way to add weather data as image to a map #2124

Merged
merged 3 commits into from Jul 30, 2023

Conversation

charlenni
Copy link
Member

Demo for uses of RasterFeature

Add a new function to create bitmap image for square data fast, but with unsafe code.
Renamed the sample, so that it is more a sample for an image over the map, but not a weather app.
return new SKPoint((float)x, (float)y);
}

private static Random _random = new Random();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for reproducability (Regression Unit Tests) it would be good to use a fixed seed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought, that this is only a demo. But I could change this. Or I delete the PR at the end, when the TO got, what to do.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for deleting the PR. When no regression image is created it will not be tested.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the c# source code to the samples blazor project. By executing
Scripts\BuildSamplesDocumentation.ps1

@inforithmics
Copy link
Contributor

Merging it now, Nice sample.

@inforithmics inforithmics merged commit e908954 into Mapsui:master Jul 30, 2023
6 checks passed
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

2 participants