UNPKG

kepler.gl

Version:

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

28 lines (26 loc) 4.5 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = MapPopoverContentFactory; var _react = _interopRequireDefault(require("react")); var _reactIntl = require("react-intl"); var _layerHoverInfo = _interopRequireDefault(require("./layer-hover-info")); var _coordinateInfo = _interopRequireDefault(require("./coordinate-info")); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project MapPopoverContentFactory.deps = [_layerHoverInfo["default"], _coordinateInfo["default"]]; function MapPopoverContentFactory(LayerHoverInfo, CoordinateInfo) { var MapPopoverContent = function MapPopoverContent(_ref) { var coordinate = _ref.coordinate, layerHoverProp = _ref.layerHoverProp, zoom = _ref.zoom; return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, Array.isArray(coordinate) && /*#__PURE__*/_react["default"].createElement(CoordinateInfo, { coordinate: coordinate, zoom: zoom }), layerHoverProp && /*#__PURE__*/_react["default"].createElement(LayerHoverInfo, layerHoverProp)); }; return (0, _reactIntl.injectIntl)(MapPopoverContent); } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9yZWFjdEludGwiLCJfbGF5ZXJIb3ZlckluZm8iLCJfY29vcmRpbmF0ZUluZm8iLCJNYXBQb3BvdmVyQ29udGVudEZhY3RvcnkiLCJkZXBzIiwiTGF5ZXJIb3ZlckluZm9GYWN0b3J5IiwiQ29vcmRpbmF0ZUluZm9GYWN0b3J5IiwiTGF5ZXJIb3ZlckluZm8iLCJDb29yZGluYXRlSW5mbyIsIk1hcFBvcG92ZXJDb250ZW50IiwiX3JlZiIsImNvb3JkaW5hdGUiLCJsYXllckhvdmVyUHJvcCIsInpvb20iLCJjcmVhdGVFbGVtZW50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