UNPKG

kepler.gl

Version:

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

34 lines (32 loc) 3.97 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _localization = require("@kepler.gl/localization"); var _tippyTooltip = _interopRequireDefault(require("../common/tippy-tooltip")); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project function MapControlTooltipFactory() { var MapControlTooltip = /*#__PURE__*/_react["default"].memo(function (_ref) { var id = _ref.id, message = _ref.message, children = _ref.children; return /*#__PURE__*/_react["default"].createElement(_tippyTooltip["default"], { placement: "left", render: function render() { return /*#__PURE__*/_react["default"].createElement("div", { id: id }, /*#__PURE__*/_react["default"].createElement(_localization.FormattedMessage, { id: message })); } }, children); }); MapControlTooltip.displayName = 'MapControlTooltip'; return MapControlTooltip; } var _default = exports["default"] = MapControlTooltipFactory; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9sb2NhbGl6YXRpb24iLCJfdGlwcHlUb29sdGlwIiwiTWFwQ29udHJvbFRvb2x0aXBGYWN0b3J5IiwiTWFwQ29udHJvbFRvb2x0aXAiLCJSZWFjdCIsIm1lbW8iLCJfcmVmIiwiaWQiLCJtZXNzYWdlIiwiY2hpbGRyZW4iLCJjcmVhdGVFbGVtZW50IiwicGxhY2VtZW50IiwicmVuZGVyIiwiRm9ybWF0dGVkTWVzc2FnZSIsImRpc3BsYXlOYW1lIiwiX2RlZmF1bHQiLCJleHBvcnRzIl0sInNvdXJjZXMiOlsiLi4vLi4vc3JjL21hcC9tYXAtY29udHJvbC10b29sdGlwLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlUXG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