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

Is the code for the LeafletForBlazor library itself available anywhere? #65

Open
oldominion opened this issue Jan 16, 2025 · 2 comments

Comments

@oldominion
Copy link

oldominion commented Jan 16, 2025

I find myself reluctant to adopt LeafletForBlazor without being able to see the code behind RealTimeMap and the javascript wrappers, etc, because when I inevitably run in to an issue it will be hard to work around. For example, the DisplayPolygonsFromArray.add() function is quite slow when drawing all counties as polygons (using 10m data from NED), and I'd like to work out if there's a way to speed it up, perhaps, for example, by temporarily disabling realtime rendering of the map while my C# loop runs to add the various polygons and labels.

@ichim
Copy link
Owner

ichim commented Jan 17, 2025

Hello sir,

In the LeafletForBlazor documentation I pointed out that the DisplayPolygonsFromArray class is recommended to be used to highlight the items of the map, It is not optimal to use this class when rendering a large set of polygons.

For large datasets, you can use the DataFromGeoJSON class:

https://github.com/ichim/LeafletForBlazor-NuGet/tree/main/RTM%20and%20GeoJSON/working%20with%20Files

@oldominion
Copy link
Author

oldominion commented Jan 18, 2025

OK, thanks. I would say it's quite confusing to use the DataFromGeoJSON class at present. It would be nice if the type hierarchy described in the example RTM GeoJSON data object/RTM GeoJSON data object/Pages/Home.razor were part of the NuGet package and commented, so we have a well defined structure to pass, as it differs quite substantially from the Leaflet Hierarchy described at https://leafletjs.com/reference.html
Do the types in RTM GeoJSON data object/RTM GeoJSON data object/Pages/Home.razor describe all of the currently supported properties we can set?

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

No branches or pull requests

2 participants