CreateProviderWithRandomPoints() public static method

public static CreateProviderWithRandomPoints ( BoundingBox envelope, int count = 100 ) : MemoryProvider
envelope BoundingBox
count int
return Mapsui.Providers.MemoryProvider
Beispiel #1
0
 private static ILayer CreateHoverInfoLayer(BoundingBox envelope)
 {
     return new Layer(HoverInfoLayerName)
     {
         DataSource = PointsSample.CreateProviderWithRandomPoints(envelope, 25),
         Style = CreateHoverSymbolStyle()
     };
 }
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(OpenStreetMap.CreateTileLayer());
            var provider = PointsSample.CreateProviderWithRandomPoints(map.Envelope);

            map.Layers.Add(CreateStackedLabelLayer(provider, LabelColumn));
            map.Layers.Add(CreateLayer(provider));
            return(map);
        }