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); }
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); }
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); }