Example #1
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(OsmSample.CreateLayer());
            var provider = PointsSample.CreateRandomPointsProvider(map.Envelope);

            map.Layers.Add(CreateLabelLayer(provider));
            map.Layers.Add(CreateLayer(provider));
            return(map);
        }
Example #2
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(OsmSample.CreateLayer());
            var randomPointLayer = CreateRandomPointLayer(PointsSample.CreateRandomPointsProvider(map.Envelope));

            map.Layers.Add(randomPointLayer);
            map.InfoLayers.Add(randomPointLayer);
            return(map);
        }