erossini / BlazorWorldMap

WorldMap component for Blazor WebAssembly and Blazor Server
2 stars 1 forks source link

Microsoft.JSInterop.JSException: Invalid "world_en" map parameter #2

Open drma-tech opened 1 year ago

drma-tech commented 1 year ago

im using blazor .net 7.0

blazor.webassembly.js:1 Uncaught (in promise) Error: Microsoft.JSInterop.JSException: Invalid "world_en" map parameter. Please make sure you have loaded this map file in your HTML. Error: Invalid "world_en" map parameter. Please make sure you have loaded this map file in your HTML. at new JQVMap (jquery.vmap.js:79:15) at jQuery.fn.vectorMap (jquery.vmap.js:372:19) at initialize (worldmap.js:9:29) at blazor.webassembly.js:1:3337 at new Promise () at Object.beginInvokeJSFromDotNet (blazor.webassembly.js:1:3311) at Object.Gt [as invokeJSFromDotNet] (blazor.webassembly.js:1:62569) at Object.Ii (dotnet.7.0.7.d6ly7i5yxa.js:5:71974) at _mono_wasm_invoke_js_blazor (dotnet.7.0.7.d6ly7i5yxa.js:14:103886) at 00993286:0x1d6b6 at Microsoft.JSInterop.JSRuntime.d__161[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at PSC.Blazor.Components.WorldMap.JSWorldMapInterop.Initialize(DotNetObjectReference1 dotNetObjectRef, ElementReference elementRef, String elementId, Object options) at PSC.Blazor.Components.WorldMap.WorldMap.JSAdded() at Object.endInvokeDotNetFromJS (blazor.webassembly.js:1:3549) at Object.Xt [as endInvokeDotNetFromJS] (blazor.webassembly.js:1:63263) at Object.Gt [as invokeJSFromDotNet] (blazor.webassembly.js:1:62760) at Object.Ii (dotnet.7.0.7.d6ly7i5yxa.js:5:71974) at _mono_wasm_invoke_js_blazor (dotnet.7.0.7.d6ly7i5yxa.js:14:103886) at 00993286:0x1d6b6 at 00993286:0x1cae4 at 00993286:0xe1d4 at 00993286:0xd044 at 00993286:0x1a23ad

drma-tech commented 1 year ago

image for some reason, this array is empty.

erossini commented 1 year ago

Let me check this error Enrico

drma-tech commented 1 year ago

@erossini ok.

I will be a very active user of this component. expect many suggestions for improvements.

erossini commented 1 year ago

I can replicate the error that occurs only with NET7. In the NET6 project the map is working as expected. This is interesting. Also, I noticed that the map doesn't show the button to zoom in and out.

drma-tech commented 1 year ago

@erossini does not show the buttons, the pin does not appear and also the texts.

drma-tech commented 9 months ago

@erossini Did you abandon the project?

erossini commented 9 months ago

This project is not abandon but I'm working on other components for NET8.