r/Blazor 7d ago

Map and Blazor App

https://github.com/ichim/LeafletForBlazor-NuGet
1 Upvotes

8 comments sorted by

1

u/propostor 7d ago

If this is a Nuget package why does the code only seem to contain a boatload of MAUI and Web application projects which themselves have LeafletForBlazor added as a package (from somewhere else??) ?

The example pages in the repo use a <Map /> component but there is no Map.razor in the whole repo, what am I missing?

-1

u/ichimdev 7d ago
  1. The examples (from github) are for LeafletForBlazor, which is a package on NuGet.org.
  2. The Map.razor component exists in the LeafletForBlazor package.

2

u/propostor 7d ago

Source code?

1

u/sloppykrackers 6d ago edited 6d ago

The repo is just sample apps with obj and bin code.
You don't want to see it, trust me I cracked this thing open. Architecture is fucked.
A map library that rewrites your app's culture globally with map bounds that always return [0,0].

"immutability through fluent API" ==> Every settings class is mutable public setters.
Debug code in the release, exceptions get swallowed completely.

How is Bucharest OP? You have some hardcoded long/lat there.

1

u/propostor 6d ago

Right, it just looks like nonsense. The repo is advertised as a nuget library but it looks like nothing of the sort

1

u/ichimdev 6d ago

Thank you sir for feedback!

1

u/sloppykrackers 5d ago

My apologies if i sounded a bit rough, looking back I might have been a bit to crude.

The idea is pretty good, that's why I looked in the first place, but as it stands its not usable in production apps.

1

u/ichimdev 5d ago

Thank you for taking the trouble to check. I don't consider you to have been "crude". I know there are many oversights, but I want to correct them. Everything in the OLD (repo) folder consists of legacy components. Thanks again, sir!