示例#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);
        }
示例#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);
        }
示例#3
0
        public static Map CreateMap()
        {
            var map = new Map();

            map.Layers.Add(new TileLayer(KnownTileSources.Create())
            {
                Name = "OSM"
            });
            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);
        }