public static Map CreateMap() { var map = new Map(); map.Layers.Add(OpenStreetMap.CreateTileLayer()); var provider = RandomPointGenerator.CreateProviderWithRandomPoints(map.Extent); map.Layers.Add(CreateStackedLabelLayer(provider, LabelColumn)); map.Layers.Add(CreateLayer(provider)); return(map); }
public static Map CreateMap() { var provider = RandomPointGenerator.CreateProviderWithRandomPoints(new MRect(-100, -100, 100, 100), 20, 0); var layer = CreateLayer(provider); var stackedLabelLayer = CreateStackedLabelLayer(provider, LabelColumn); var map = new Map { BackColor = Color.FromString("WhiteSmoke"), Home = n => n.NavigateTo(layer.Extent !.Grow(layer.Extent.Width * 0.3)) }; map.Layers.Add(stackedLabelLayer); map.Layers.Add(layer); return(map); }