@deck.gl/core
Version:
deck.gl core library
23 lines • 689 B
JavaScript
// deck.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
function isJSON(text) {
const firstChar = text[0];
const lastChar = text[text.length - 1];
return (firstChar === '{' && lastChar === '}') || (firstChar === '[' && lastChar === ']');
}
// A light weight version instead of @loaders.gl/json (stream processing etc.)
export default {
dataType: null,
batchType: null,
id: 'JSON',
name: 'JSON',
module: '',
version: '',
options: {},
extensions: ['json', 'geojson'],
mimeTypes: ['application/json', 'application/geo+json'],
testText: isJSON,
parseTextSync: JSON.parse
};
//# sourceMappingURL=json-loader.js.map