diff --git a/src/OpenLayers.Blazor.Demo.Components/Pages/Index.razor b/src/OpenLayers.Blazor.Demo.Components/Pages/Index.razor index 543000d..3292592 100644 --- a/src/OpenLayers.Blazor.Demo.Components/Pages/Index.razor +++ b/src/OpenLayers.Blazor.Demo.Components/Pages/Index.razor @@ -50,7 +50,7 @@ Visible Extent: @_map?.VisibleExtent - + diff --git a/src/OpenLayers.Blazor/Map.razor.cs b/src/OpenLayers.Blazor/Map.razor.cs index 213033e..8d68920 100644 --- a/src/OpenLayers.Blazor/Map.razor.cs +++ b/src/OpenLayers.Blazor/Map.razor.cs @@ -310,7 +310,7 @@ public async Task OnInternalMarkerClick(Internal.Marker marker) #if DEBUG Console.WriteLine($"OnInternalMarkerClick: {JsonSerializer.Serialize(marker)}"); #endif - var m = MarkersList.FirstOrDefault(p => p.InternalFeature.Id == marker.Id); + var m = MarkersList.FirstOrDefault(p => string.Equals(p.InternalFeature.Id.ToString(), marker.Id.ToString(), StringComparison.OrdinalIgnoreCase)); if (m != null) {