(obj, pbf)
| 54 | return obj; |
| 55 | } |
| 56 | export function writeTileFeature(obj, pbf) { |
| 57 | if (obj.id) pbf.writeVarintField(1, obj.id); |
| 58 | if (obj.tags) pbf.writePackedVarint(2, obj.tags); |
| 59 | if (obj.type) pbf.writeVarintField(3, obj.type); |
| 60 | if (obj.geometry) pbf.writePackedVarint(4, obj.geometry); |
| 61 | } |
| 62 | |
| 63 | export function readTileLayer(pbf, end) { |
| 64 | const obj = {version: 1, name: "", features: [], keys: [], values: [], extent: 4096}; |
nothing calls this directly
no test coverage detected
searching dependent graphs…