- Updated dependencies
- Add web platform support (#10).
Breaking changes:
- Remove
VectorTile.fromPath
,encodeVectorTile
,decodeVectorTile
methods. (Read the migrate guide below to update your code).
Migrate guide:
VectorTile.fromPath
:
// Old
final tile = await VectorTile.fromPath(path: '../data/sample-12-3262-1923.pbf');
// New
final tileData = await File('../data/sample-12-3262-1923.pbf').readAsBytes();
final tile = await VectorTile.fromBytes(bytes: tileData);
encodeVectorTile
:
// Old
await encodeVectorTile(path: './gen/tile.pbf', tile: tile);
// New
await File('./gen/tile.pbf').writeAsBytes(tile.writeToBuffer());
decodeVectorTile
:
// Old
final tile = decodeVectorTile(path: '../data/sample-12-3262-1923.pbf')
// New
final tileData = await File('../data/sample-12-3262-1923.pbf').readAsBytes();
final tile = await VectorTile.fromBuffer(tileData)
- (Improvement memory usage) Use fixed size lists instead of growable lists. (#8).
- (Improvement memory usage) Change data structure for VectorTileValue. (#7).
- (Breaking change - Improvement memory usage) Change data type for feature's properties from List to Map (#6).
- Avoid decoding geometry more than once (#5).
- Add support reading tiles from buffer (#4).
- Add support for null-safety (#3).
- Add check data type for
layer values
when converting data from raw layer.
- Update linter rules.
- Add generic type to
GeoJson
class.
- Add
toGeoJson
method onVectorTile
class to allow decode raw VectorTile format to GeoJson FeatureCollection.
- Fix type issues when call
map
method onList
that returned a Iterator instead of a new List.
- Change namespace import from
PascalCase
tosnake_case
.
- Add properties decode for feature GeoJson.
- Split all to two type of classes:
raw vector tile
andvector tile
. - Add support for decode feature geometry.
- Add support for convert raw feature to GeoJson (only Feature type).
- @required annotion to
createVectorTileFeature
andcreateVectorTileLayer
based on specification
- Generate VectorTile classes from protobuf spec.
- Encode functionality.
- Decode functionality.