decodeVectorTile function
Read an vector tile (.mvt
/.pbf
) file from disk,
Then decode it into VectorTile
instance
Implementation
Future<VectorTile> decodeVectorTile({required String path}) async {
File file = File(path);
return VectorTile.fromBuffer(
await file.readAsBytes(),
);
}