示例#1
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="provider">The MapBox Tiles provider</param>
 /// <param name="name">The name of the TileSource</param>
 internal MbTilesTileSource(MbTilesProvider provider, string name = DefaultName)
 {
     _provider = provider;
     Name      = name;
 }
示例#2
0
 internal MbTilesTileSource(SqliteConnection connection, ITileSchema schema = null, MbTilesType type = MbTilesType.None)
 {
     _tileSource = new MbTilesProvider(connection, schema, type);
 }
示例#3
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="provider">The MapBox Tiles provider</param>
 public MbTilesTileSource(MbTilesProvider provider)
 {
     _provider = provider;
 }
示例#4
0
        public void TestConstructorFilename()
        {
            MbTilesProvider provider;

            Assert.DoesNotThrow(() => provider = new MbTilesProvider(MbTilesFile));
        }
示例#5
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="provider">The MapBox Tiles provider</param>
 internal MbTilesTileSource(MbTilesProvider provider)
 {
     _provider = provider;
 }