Слои карт MapSui не выровнены в моем приложении WPF, а добавленные файлы формы показаны внутри океана.
Мой код здесь: < /p>
var shapeFile = new ShapeFile(shapefilePath, true);
var layer = new Layer(Path.GetFileNameWithoutExtension(shapefilePath))
{
DataSource = shapeFile,
Style = new VectorStyle
{
// Semi-transparent fill (alpha < 255)
Fill = new Brush { Color = Mapsui.Styles.Color.FromArgb(100, 0, 0, 255) },
// Red outline
Outline = new Pen { Color = Mapsui.Styles.Color.Red, Width = 2 }
}
};
Map.Layers.Add(layer);
Подробнее здесь: https://stackoverflow.com/questions/797 ... in-wpf-app