kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
73 lines (72 loc) • 11.1 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _base = require("../base");
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" != _typeof(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; }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
var GeojsonLayerIcon = exports["default"] = /*#__PURE__*/function (_Component) {
function GeojsonLayerIcon() {
(0, _classCallCheck2["default"])(this, GeojsonLayerIcon);
return _callSuper(this, GeojsonLayerIcon, arguments);
}
(0, _inherits2["default"])(GeojsonLayerIcon, _Component);
return (0, _createClass2["default"])(GeojsonLayerIcon, [{
key: "render",
value: function render() {
return /*#__PURE__*/_react["default"].createElement(_base.Base, this.props, /*#__PURE__*/_react["default"].createElement("polygon", {
className: "cr1",
points: "25.04 23.08 9.72 31.79 8.19 43.2 19.57 53.83 28.79 53.83 35.6 46.57 39.45 30.08 25.04 23.08"
}), /*#__PURE__*/_react["default"].createElement("polygon", {
className: "cr2",
points: "52.8 26.3 41.74 30.32 37.9 46.75 45.26 53.83 51.45 53.83 55.07 43.51 52.8 26.3",
style: {
opacity: 0.8
}
}), /*#__PURE__*/_react["default"].createElement("polygon", {
className: "cr3",
points: "36.69 48.75 31.93 53.83 41.96 53.83 36.69 48.75",
style: {
opacity: 0.4
}
}), /*#__PURE__*/_react["default"].createElement("polygon", {
className: "cr3",
points: "25.95 20.98 40.84 28.22 52.57 24.06 50.89 11.5 23.24 11.5 25.95 20.98",
style: {
opacity: 0.4
}
}), /*#__PURE__*/_react["default"].createElement("polygon", {
className: "cr4",
points: "20.79 11.9 11.73 15.72 10.08 28.96 23.64 21.25 20.79 11.9",
style: {
opacity: 0.8
}
}));
}
}]);
}(_react.Component);
(0, _defineProperty2["default"])(GeojsonLayerIcon, "propTypes", {
/** Set the height of the icon, ex. '16px' */
height: _propTypes["default"].string,
colors: _propTypes["default"].arrayOf(_propTypes["default"].string)
});
(0, _defineProperty2["default"])(GeojsonLayerIcon, "defaultProps", {
height: null,
size: 'tiny',
predefinedClassName: 'geojson-layer-icon'
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64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