Ejemplo n.º 1
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(OpenStreetMap.CreateTileLayer());
            map.Layers.Add(PolygonSample.CreateLayer());
            map.Layers.Add(LineStringSample.CreateLineStringLayer(LineStringSample.CreateLineStringStyle()));
            map.Layers.Add(CreateLayerWithStyleOnLayer(map.Envelope, 10));
            map.Layers.Add(CreateLayerWithStyleOnFeature(map.Envelope, 10));

            return(map);
        }
Ejemplo n.º 2
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(OpenStreetMap.CreateTileLayer());
            map.Layers.Add(PolygonSample.CreateLayer());
            map.Layers.Add(LineStringSample.CreateLineStringLayer(LineStringSample.CreateLineStringStyle()));
            map.Layers.Add(CreateLayerWithStyleOnLayer(map.Envelope, 10));
            map.Layers.Add(CreateLayerWithStyleOnFeature(map.Envelope, 10));

            //map.Viewport.RenderResolutionMultiplier = 2;

            return(map);
        }
Ejemplo n.º 3
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(new TileLayer(KnownTileSources.Create())
            {
                Name = "OSM"
            });
            map.Layers.Add(LineStringSample.CreateLineStringLayer(LineStringSample.CreateLineStringStyle()));
            map.Layers.Add(CreateLayerWithStyleOnLayer(map.Envelope, 10));
            map.Layers.Add(CreateLayerWithStyleOnFeature(map.Envelope, 10));

            map.Viewport.RenderResolutionMultiplier = 2;

            return(map);
        }
Ejemplo n.º 4
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(new TileLayer(KnownTileSources.Create())
            {
                Name = "OSM"
            });
            map.Layers.Add(LineStringSample.CreateLineStringLayer(LineStringSample.CreateLineStringStyle()));
            map.Layers.Add(PointsSample.CreateRandomPointLayer(map.Envelope,
                                                               style: PointsSample.CreateBitmapStyle("Mapsui.Samples.Common.Images.ic_place_black_24dp.png")));
            map.Layers.Add(PointsSample.CreateBitmapPointLayer());
            map.Viewport.RenderResolutionMultiplier = 2;

            map.Layers.Add(new MemoryLayer {
                DataSource = CreateLineProvider()
            });


            return(map);
        }