Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Displaying multiple maps on page within child component throws an error

$
0
0

I'm using BlazorGoogleMaps to display a map for each property in a list (shown using cards with the map on top).

I get the following error:

Error: Microsoft.JSInterop.JSException: Property 'Map' not foundError: Property 'Map' not found    at stringToFunction (https://localhost:7365/_content/BlazorGoogleMaps/js/objectManager.js:8:23)    at Object.createObject (https://localhost:7365/_content/BlazorGoogleMaps/js/objectManager.js:374:35)    at https://localhost:7365/_framework/blazor.web.js:1:2900...

This error occurs always when using child components i.e. each property uses a PropertyCard to display the property. When not using a child component and the code is directly in the parent, this error occurs in my main project but not the minimal repo I created.

I have created a minimal reproducible example here.(API keys removed from Program.cs files.)


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>