@here/quantized-mesh-decoder

Decoder for the Quantized Mesh 1.0 format

Usage no npm install needed!

<script type="module">
  import hereQuantizedMeshDecoder from 'https://cdn.skypack.dev/@here/quantized-mesh-decoder';
</script>

README

Quantized Mesh Decoder

JavaScript decoder for the Quantized Mesh format.

Note: This is experimental code, expect changes.

Installation

In Node.js

The module is installable via yarn (or npm):

yarn add @here/quantized-mesh-decoder
npm install @here/quantized-mesh-decoder

API Reference

import decode from '@here/quantized-mesh-decoder'

decode(buffer, options)
DecoderOptions
  • maxDecodingStep: Number
    Limits how deep decoder should go. Takes of the properties of the DECODING_STEPS map. See import { DECODING_STEPS } from '@here/quantized-mesh-decoder' .
    Default: DECODING_STEPS.extensions.

Links

Sample Tiles Attribution

License

Copyright (C) 2018-2019 HERE Europe B.V.

See the LICENSE file in the root of this project for license details.