UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

14 lines (12 loc) 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidMapInfo = isValidMapInfo; var _constants = require("@kepler.gl/constants"); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project function isValidMapInfo(mapInfo) { return mapInfo.title.length && mapInfo.title.length <= _constants.MAP_INFO_CHARACTER.title && (!mapInfo.description.length || mapInfo.description.length <= _constants.MAP_INFO_CHARACTER.description); } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfY29uc3RhbnRzIiwicmVxdWlyZSIsImlzVmFsaWRNYXBJbmZvIiwibWFwSW5mbyIsInRpdGxlIiwibGVuZ3RoIiwiTUFQX0lORk9fQ0hBUkFDVEVSIiwiZGVzY3JpcHRpb24iXSwic291cmNlcyI6WyIuLi9zcmMvbWFwLWluZm8tdXRpbHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVFxuLy8gQ29weXJpZ2h0IGNvbnRyaWJ1dG9ycyB0byB0aGUga2VwbGVyLmdsIHByb2plY3RcblxuaW1wb3J0IHtNQVBfSU5GT19DSEFSQUNURVJ9IGZyb20gJ0BrZXBsZXIuZ2wvY29uc3RhbnRzJztcblxuZXhwb3J0IGZ1bmN0aW9uIGlzVmFsaWRNYXBJbmZvKG1hcEluZm8pIHtcbiAgcmV0dXJuIChcbiAgICBtYXBJbmZvLnRpdGxlLmxlbmd0aCAmJlxuICAgIG1hcEluZm8udGl0bGUubGVuZ3RoIDw9IE1BUF9JTkZPX0NIQVJBQ1RFUi50aXRsZSAmJlxuICAgICghbWFwSW5mby5kZXNjcmlwdGlvbi5sZW5ndGggfHwgbWFwSW5mby5kZXNjcmlwdGlvbi5sZW5ndGggPD0gTUFQX0lORk9fQ0hBUkFDVEVSLmRlc2NyaXB0aW9uKVx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