public async Task ZoomThemeOutOnClick(MouseEventArgs e) { Zoom = 1; var newStruct = new AppBarStruct("Astrologie", true, Zoom); await AppStateServiceCore.ChangeStruct(newStruct); StateHasChanged(); }
protected override async Task OnInitializedAsync() { NavigationManager.LocationChanged += OnLocationChanges; var oldStruct = AppStateServiceCore.AppBarStruct; var newStruct = new AppBarStruct("Astrologie", true, oldStruct.AstroZoom); await AppStateServiceCore.ChangeStruct(newStruct); AppStateServiceCore.OnChange += OnStructChange; model.lat = "46.20222"; model.lng = "6.14569"; }