createVectorTileGeomType function

VectorTile_GeomType? createVectorTileGeomType({
  1. required int type,
})

Get GeomType for given int value

  • 0: UNKNOWN
  • 1: POINT
  • 2: LINESTRING
  • 3: POLYGON

You also can use VectorTile_GeomType enum directly instead of this function e.g. VectorTile_GeomType.POINT

@spec: https://github.com/mapbox/vector-tile-spec/blob/master/2.1/README.md#434-geometry-types

Implementation

VectorTile_GeomType? createVectorTileGeomType({
  required int type,
}) {
  return VectorTile_GeomType.valueOf(type);
}