kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
40 lines (38 loc) • 3.81 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("..");
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var CloudStorageItems = [{
label: 'Save',
icon: _.Icons.Save2,
key: 'data',
onClick: function onClick(props) {
return props.onSaveMap;
}
}, {
label: 'Settings',
icon: _.Icons.Gear,
key: 'settings',
onClick: function onClick(props) {
return props.onExportData;
}
}];
var PanelHeaderDropdown = (0, _.PanelHeaderDropdownFactory)();
var CloudStorageDropdown = function CloudStorageDropdown(_ref) {
var show = _ref.show,
onClose = _ref.onClose;
return /*#__PURE__*/_react["default"].createElement(PanelHeaderDropdown, {
items: CloudStorageItems,
show: show,
onClose: onClose,
id: "cloud-storage"
});
};
var _default = exports["default"] = CloudStorageDropdown;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl8iLCJDbG91ZFN0b3JhZ2VJdGVtcyIsImxhYmVsIiwiaWNvbiIsIkljb25zIiwiU2F2ZTIiLCJrZXkiLCJvbkNsaWNrIiwicHJvcHMiLCJvblNhdmVNYXAiLCJHZWFyIiwib25FeHBvcnREYXRhIiwiUGFuZWxIZWFkZXJEcm9wZG93biIsIlBhbmVsSGVhZGVyRHJvcGRvd25GYWN0b3J5IiwiQ2xvdWRTdG9yYWdlRHJvcGRvd24iLCJfcmVmIiwic2hvdyIsIm9uQ2xvc2UiLCJjcmVhdGVFbGVtZW50IiwiaXRlbXMiLCJpZCIsIl9kZWZhdWx0IiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWRlLXBhbmVsL2Nsb3Vk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