Google maps control giving errors after update

So I updated my project from 4.23.1 to 5.5.5 of the Radzen.Blazor package. Suddenly my google maps control is giving errors:

<RadzenGoogleMap MapId="xxx" MarkerClick="MarkerClicked" Zoom=6 ApiKey="xx" Options="@Options"></RadzenGoogleMap>

16:57:28:406 InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: not an Object
16:57:28:406 InvalidValueError: setZoom: not a number
16:57:28:406 TypeError: markers.forEach is not a function
16:57:28:406 Stack trace:
16:57:28:406 > at > > https://localhost:7279/_content/Radzen.Blazor/Radzen.Blazor.js:258:25

Im am probably missing something but I don't know what. It is a Blazor WASM standalone app.

You can check this thread for reference:

Thanks. That post references v5.5.5 as a release in which the problem disappeared. Shouldn't that fix my problem as well as I am already on v5.5.5?

Nevermind, by adding the version to the script things are fixed:

<script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=5.5.5.0"></script>

I did not have to specify the version before I upgraded but somehow it seems needed now.

It’s not needed however will help to prevent caching problems.

1 Like