You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
There is a static class in the LiveChartsCore project called Maps and it has the GetWorldMap() method:
// Usings are omitted for brevity.namespaceLiveChartsCore.Geo;/// <summary>/// Defines the maps./// </summary>publicstaticclassMaps{/// <summary>/// Gets the world map./// </summary>/// <returns>The map.</returns>/// <exception cref="Exception">Map not found</exception>publicstaticCoreMap<TDrawingContext>GetWorldMap<TDrawingContext>()whereTDrawingContext:DrawingContext{vara=Assembly.GetExecutingAssembly();varmap="LiveChartsCore.Geo.world.geojson";usingvarreader=newStreamReader(a.GetManifestResourceStream(map)??thrownewException("file not found"));returnGetMapFromStreamReader<TDrawingContext>(reader);}// Other methods are also omitted for brevity.}
The world map is retrieved from the LiveChartsCore assembly manifest resource. To get the LiveChartsCore assembly, the Assembly.GetExecutingAssembly() method is used, which is not correct, because the executing assembly may be different from the LiveChartsCore.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
There is a static class in the LiveChartsCore project called Maps and it has the GetWorldMap() method:
The world map is retrieved from the LiveChartsCore assembly manifest resource. To get the LiveChartsCore assembly, the Assembly.GetExecutingAssembly() method is used, which is not correct, because the executing assembly may be different from the LiveChartsCore.
I suggest two ways to fix this behavior:
or
What do you think about this?
Beta Was this translation helpful? Give feedback.
All reactions