Xamarin.Forms调用OpenStreetMap离线地图

            var map = new Mapsui.Map
           {
            Transformation = new MinimalTransformation(),
            CRS = "EPSG:3857",
            BackColor = Mapsui.Styles.Color.Gray
        };


        var attribution = new BruTile.Attribution("© OpenStreetMap contributors",
            "http://www.openstreetmap.org/copyright");


        var tileSource = new HttpTileSource(new GlobalSphericalMercator(),
            "https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
            new[] { "a", "b", "c" }, name: "OpenStreetMap",
            attribution: attribution);

        var tileLayer = new TileLayer(tileSource) { Name = "Carto Light" };


        map.Layers.Add(tileLayer);

  

原文地址:https://www.cnblogs.com/sanqiu-mark/p/13502051.html