-
Notifications
You must be signed in to change notification settings - Fork 10
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
Issue with Maps in Dialog boxes (MudBlazor) #50
Comments
Hello sir, The RealTimeMap behavior is unusual. You could check the status of the div in which the map is displayed? (right click on RealTimeMap and select Inspect). If everything seems fine, I will try to put a RealTimeMap on MudBlazor! |
Hello sir, |
Thanks a lot! |
Thanks for your great map, i really love using it. Here i created a Repository to showcase this issue: https://github.com/ummerland/LeafletMudBlazorDemo I think there are two test cases here:
This also applies to page changes:
I noticed, that in polygon.js, the variable Thanks for your help. |
I have the same issue. Even the demo page at https://github.com/ichim/LeafletForBlazor-NuGet/blob/main/RTM%20Polygons%20from%20Array/RTM%20Polygons%20from%20Array/Pages/Index.razor doesn't work. It just doesn't show any polygons. And I do have MudBlazor in my project. However, when I clone your repository everything works fine, and even after adding MudBlazor it still works. To be fair, my project is a MAUI Hybrid project and not a ASP.NET Core Blazor project, so maybe that's the problem? Edit: just created a dummy MAUI Hybrid project and just added the demo page to it and it does NOT work. So apparantly DisplayPolygonsFromArray does not work on hybrid apps? |
I've got the following error without adding a symbol: SyntaxError: Unexpected number in JSON at position 6 (line 1 column 7)
With a PolygonSymbol ( the error is: |
Hello sir, |
Hi,
i'm displaying a map in a closable dialog (MudBlazor / https://mudblazor.com/components/dialog#usage).
The first time everything works fine:
The blue and the yellow polyline are visible and the map can be zoomed and moved around.
After close the dialog and open it again, the yellow track is missing:
The other issue is that somtimes the line are not "glued" to the map. if i zoom in or out or move the map around, the lines stay where they are:
it's supposed to look this way:
the tracks get added this way:
public async Task OnAfterMapLoaded(RealTimeMap.MapEventArgs args) { await args.sender.Geometric.DataFromGeoJSON.addObject(_track); await args.sender.Geometric.DataFromGeoJSON.addObject(_originalTrack); }
<RealTimeMap @ref="_map" height="660px" width="820px" Parameters="_parameters" OnAfterMapLoaded="@OnAfterMapLoaded"></RealTimeMap>
_parameters = new RealTimeMap.LoadParameters { location = new RealTimeMap.Location() { latitude = _trip.RawPositions.OrderBy(p => p.Timestamp).First().Latitude, longitude = _trip.RawPositions.OrderBy(p => p.Timestamp).First().Longitude }, zoomLevel = 11, };
Best,
Alain
The text was updated successfully, but these errors were encountered: