fromRaw static method
Implementation
static VectorTileLayer fromRaw({required raw.VectorTile_Layer rawLayer}) {
List<VectorTileValue> values = rawLayer.values
.map((value) => VectorTileValue.fromRaw(value))
.toList(growable: false);
List<VectorTileFeature> features = rawLayer.features.map((feature) {
return VectorTileFeature(
id: feature.id,
tags: feature.tags,
type: VectorTileGeomTypeExtension.fromRaw(feature.type),
geometryList: feature.geometry,
extent: rawLayer.extent,
keys: rawLayer.keys,
values: values,
);
}).toList(growable: false);
return VectorTileLayer(
name: rawLayer.name,
extent: rawLayer.extent,
version: rawLayer.version,
keys: rawLayer.keys,
values: values,
features: features,
);
}