Exemplo n.º 1
0
        private void InitializeTileSchema(OpenStreetMapType mapType)
        {
            Schema = new SphericalMercatorTileSchema();
            switch (mapType)
            {
            case OpenStreetMapType.CycleMap:
                ((SphericalMercatorTileSchema)Schema).NumberOfZoomLevels = 17;
                break;

            case OpenStreetMapType.TransportMap:
                ((SphericalMercatorTileSchema)Schema).NumberOfZoomLevels = 19;
                break;

            case OpenStreetMapType.Standard:
                ((SphericalMercatorTileSchema)Schema).NumberOfZoomLevels = 19;
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 public BingMapsTileSource(string accessKey, BingMapsType mapType)
 {
     MapType   = mapType;
     AccessKey = accessKey;
     Schema    = new SphericalMercatorTileSchema();
 }