diff --git a/src/OpenLayers.Blazor/Map.razor.cs b/src/OpenLayers.Blazor/Map.razor.cs index 8d68920..f999ae8 100644 --- a/src/OpenLayers.Blazor/Map.razor.cs +++ b/src/OpenLayers.Blazor/Map.razor.cs @@ -347,8 +347,8 @@ public async Task OnInternalCenterChanged(Coordinate coordinate) { if (!coordinate.Equals(Center)) { - await CenterChanged.InvokeAsync(coordinate); Center = coordinate; + await CenterChanged.InvokeAsync(coordinate); } }