Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
Originally posted by **SonyLawTop** October 1, 2024
Hi, I'm having trouble with a GeoMap I created. The map appears too small, and I would like to know how to apply a "zoom to fit" so that the map fits the screen properly. I have attached both a screenshot and the corresponding JSON file for reference.
[jateng.json](https://github.com/user-attachments/files/17203338/jateng.json)
[image](https://github.com/user-attachments/assets/5494c384-019a-4886-847d-ec5274b3a3eb)
`
private void loadGeoMap()
{
StreamReader sr = new StreamReader(new MemoryStream(Properties.Resources.jateng));
string jsonData = sr.ReadToEnd();
geoMap1.ActiveMap = Maps.GetMapFromStreamReader(new StreamReader(new MemoryStream(Encoding.UTF8.GetBytes(jsonData))));
}
`
Discussed in https://github.com/beto-rodriguez/LiveCharts2/discussions/1615