kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
63 lines (56 loc) • 6.12 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 _components = require("kepler.gl/components");
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
var CloudStorageItems = [{
label: 'Save',
icon: _components.Icons.Save2,
key: 'data',
onClick: function onClick(props) {
return props.onSaveMap;
}
}, {
label: 'Settings',
icon: _components.Icons.Gear,
key: 'settings',
onClick: function onClick(props) {
return props.onExportData;
}
}];
var PanelHeaderDropdown = (0, _components.PanelHeaderDropdownFactory)();
var CloudStorageDropdown = function CloudStorageDropdown(_ref) {
var show = _ref.show,
onClose = _ref.onClose;
return _react["default"].createElement(PanelHeaderDropdown, {
items: CloudStorageItems,
show: show,
onClose: onClose,
id: "cloud-storage"
});
};
var _default = CloudStorageDropdown;
exports["default"] = _default;
//# sourceMapping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