UNPKG

@loaders.gl/geoarrow

Version:

GeoArrow columnar geometry encoding and decoding

15 lines (14 loc) 402 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors export function getMetadataValue(metadata, key) { return metadata instanceof Map ? metadata.get(key) || null : metadata[key] || null; } export function setMetadataValue(metadata, key, value) { if (metadata instanceof Map) { metadata.set('key', key); } else { metadata.key = key; } }