menu
mbtiles package
documentation
mbtiles.dart
MbTiles class
MbTiles class
dark_mode
light_mode
MbTiles
class
Constructors
MbTiles
({
required
String
mbtilesPath
,
String
?
sqlitePath
,
bool
?
gzip
,
bool
editable
=
false
})
Open a MBTiles file. Use the
sqlitePath
parameter if you don't use the
sqlite3_flutter_libs
package.
MbTiles.create
({
required
String
mbtilesPath
,
required
MbTilesMetadata
metadata
,
String
?
sqlitePath
})
Open a MBTiles file. Use the
sqlitePath
parameter if you don't use the
sqlite3_flutter_libs
package. Set
isPBF
to true if the format of the mbtiles file is vector pbf. This flag is optional but will gain a small performance benefit at the begin.
Properties
editable
→
bool
Set to true if the mbtiles database can be modified, defaults to false.
final
hashCode
→
int
The hash code for this object.
no setter
inherited
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
createTables
(
)
→ void
Create all tables for the mbtiles file.
dispose
(
)
→ void
Call dispose to correctly close the sqlite database
getMetadata
(
{
bool
allowCache
=
true
})
→
MbTilesMetadata
Cached metadata that is stored inside the mbtiles file.
getTile
(
{
required
int
z
,
required
int
x
,
required
int
y
})
→
Uint8List
?
Fetch the data for a tile, returns null if the tile is not found.
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putTile
(
{
required
int
z
,
required
int
x
,
required
int
y
,
required
Uint8List
bytes
})
→ void
Inserts or updates a tile.
setMetadata
(
MbTilesMetadata
metadata
)
→ void
Set the metadata of the MBTiles file.
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
mbtiles package
documentation
mbtiles
MbTiles class
mbtiles library