VectorTile.fromBytes constructor

VectorTile.fromBytes(
  1. Uint8List bytes
)

Decodes the given bytes (.mvt/.pbf) to a VectorTile

Implementation

factory VectorTile.fromBytes(Uint8List bytes) {
  final n = vt.VectorTile.fromBytes(bytes: bytes);

  return VectorTile.fromRaw(n);
}