Skip to content

Commit

Permalink
CARTO: do not reduce position precision to 32bit (#8995)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Jul 3, 2024
1 parent bc9b73b commit 8c9f694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/carto/src/layers/schema/carto-tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export class PropertiesReader {
// Doubles ========================================

interface Doubles {
value: Float32Array;
value: Float64Array;
size: number;
}

class DoublesReader {
static read(pbf, end?: number): Doubles {
const {value, size} = pbf.readFields(DoublesReader._readField, {value: [], size: 0}, end);
return {value: new Float32Array(value), size};
return {value, size};
}
static _readField(this: void, tag: number, obj, pbf) {
if (tag === 1) readPackedTypedArray(Float64Array, pbf, obj);
Expand Down

0 comments on commit 8c9f694

Please sign in to comment.