예제 #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;
 }