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
if (mapConfig.mapLat != 0 && mapConfig.mapLng != 0)
{
position = new Point(mapConfig.mapLng, mapConfig.mapLat);
}
var sphericalMercatorCoordinate = SphericalMercator.FromLonLat(position.X, position.Y);
if (mapConfig.mapZoom != 0)
map.Home = n => n.NavigateTo(sphericalMercatorCoordinate, map.Resolutions[mapConfig.mapZoom]);
else
map.Home = n => n.NavigateTo(sphericalMercatorCoordinate, map.Resolutions[5]);
mapView.Map = map;
if (mapConfig.pins.Count > 0)
{
foreach (MyPin pin in mapConfig.pins)
{
mapView.Pins.Add(new Pin()
{
Position = new Position(pin.pinLat, pin.pinLng),
Type = PinType.Pin,
Label = pin.pinName
});
}
}
I load certain parameters from my server (like position in map and pins) and then initialize the map with the pins....the problem doesn freeze the entire app just the map zone.
If I click the pins everything works fine but when I try to move the map it freezes and then the pins no longer work.
another thing is that it doesnt un-freeze until app restart.
The text was updated successfully, but these errors were encountered:
Hello I've been having this issue but only in iOS the map works fine in Android...tested in physical iPhone XR with iOS 14.2.
here is the code:
MyMap mapConfig = getMapFromServer.Result;
var map = new Map
{
CRS = "EPSG:3857",
Transformation = new MinimalTransformation()
};
map.Layers.Add(OpenStreetMap.CreateTileLayer());
map.Widgets.Add(new ScaleBarWidget(map) { TextAlignment = Mapsui.Widgets.Alignment.Center, HorizontalAlignment = Mapsui.Widgets.HorizontalAlignment.Center, VerticalAlignment = Mapsui.Widgets.VerticalAlignment.Top });
map.Widgets.Add(new Mapsui.Widgets.Zoom.ZoomInOutWidget { MarginX = 20, MarginY = 40 });
var position = new Point(-102, 22);
if (mapConfig.mapLat != 0 && mapConfig.mapLng != 0)
{
position = new Point(mapConfig.mapLng, mapConfig.mapLat);
}
var sphericalMercatorCoordinate = SphericalMercator.FromLonLat(position.X, position.Y);
if (mapConfig.mapZoom != 0)
map.Home = n => n.NavigateTo(sphericalMercatorCoordinate, map.Resolutions[mapConfig.mapZoom]);
else
map.Home = n => n.NavigateTo(sphericalMercatorCoordinate, map.Resolutions[5]);
mapView.Map = map;
if (mapConfig.pins.Count > 0)
{
foreach (MyPin pin in mapConfig.pins)
{
mapView.Pins.Add(new Pin()
{
Position = new Position(pin.pinLat, pin.pinLng),
Type = PinType.Pin,
Label = pin.pinName
});
}
}
I load certain parameters from my server (like position in map and pins) and then initialize the map with the pins....the problem doesn freeze the entire app just the map zone.
If I click the pins everything works fine but when I try to move the map it freezes and then the pins no longer work.
another thing is that it doesnt un-freeze until app restart.
The text was updated successfully, but these errors were encountered: