UNPKG

kepler.gl

Version:

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

68 lines (65 loc) 9.75 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getApplicationConfig = void 0; exports.initApplicationConfig = initApplicationConfig; var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project /** * A mechanism to override default Kepler values/settings so that we * without having to make application-specific changes to the kepler repo. */ var DEFAULT_APPLICATION_CONFIG = { defaultHtmlName: 'kepler.gl.html', defaultImageName: 'kepler.gl.png', defaultJsonName: 'kepler.gl.json', defaultDataName: 'kepler.gl', defaultExportJsonSettings: { hasData: true }, baseMapLibraryConfig: { maplibre: { getMapLib: function getMapLib() { return Promise.resolve().then(function () { return _interopRequireWildcard(require('maplibre-gl')); }); }, mapLibCssClass: 'maplibregl', mapLibAttributionCssClass: 'maplibre-attribution-container', mapLibName: 'MapLibre', mapLibUrl: 'https://www.maplibre.org/' }, mapbox: { getMapLib: function getMapLib() { return Promise.resolve().then(function () { return _interopRequireWildcard(require('mapbox-gl')); }); }, mapLibCssClass: 'mapboxgl', mapLibAttributionCssClass: 'mapbox-attribution-container', mapLibName: 'Mapbox', mapLibUrl: 'https://www.mapbox.com/' } }, plugins: [], // The default table class is KeplerTable. // TODO include KeplerTable here when the circular dependency with @kepler.gl/table and @kepler.gl/utils are resolved. table: null, useArrowProgressiveLoading: true, showReleaseBanner: true, useOnFilteredItemsChange: false }; var applicationConfig = DEFAULT_APPLICATION_CONFIG; var getApplicationConfig = exports.getApplicationConfig = function getApplicationConfig() { return applicationConfig; }; function initApplicationConfig() { var appConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; Object.assign(applicationConfig, appConfig); } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJERUZBVUxUX0FQUExJQ0FUSU9OX0NPTkZJRyIsImRlZmF1bHRIdG1sTmFtZSIsImRlZmF1bHRJbWFnZU5hbWUiLCJkZWZhdWx0SnNvbk5hbWUiLCJkZWZhdWx0RGF0YU5hbWUiLCJkZWZhdWx0RXhwb3J0SnNvblNldHRpbmdzIiwiaGFzRGF0YSIsImJhc2VNYXBMaWJyYXJ5Q29uZmlnIiwibWFwbGlicmUiLCJnZXRNYXBMaWIiLCJQcm9taXNlIiwicmVzb2x2ZSIsInRoZW4iLCJfaW50ZXJvcFJlcXVpcmVXaWxkY2FyZCIsInJlcXVpcmUiLCJtYXBMaWJDc3NDbGFzcyIsIm1hcExpYkF0dHJpYnV0aW9uQ3NzQ2xhc3MiLCJtYXBMaWJOYW1lIiwibWFwTGliVXJsIiwibWFwYm94IiwicGx1Z2lucyIsInRhYmxlIiwidXNlQXJyb3dQcm9ncmVzc2l2ZUxvYWRpbmciLCJzaG93UmVsZWFzZUJhbm5lciIsInVzZU9uRmlsdGVyZWRJdGVtc0NoYW5nZSIsImFwcGxpY2F0aW9uQ29uZmlnIiwiZ2V0QXBwbGljYXRpb25Db25maWciLCJleHBvcnRzIiwiaW5pdEFwcGxpY2F0aW9uQ29uZmlnIiwiYXBwQ29uZmlnIiwiYXJndW1lbnRzIi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