UNPKG

rc-tile-map

Version:
74 lines (55 loc) 2.96 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports['default'] = undefined; var _class, _temp; var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _InfoBox2 = require('./InfoBox'); var _InfoBox3 = _interopRequireDefault(_InfoBox2); var _layer = require('../propTypes/layer'); var _layer2 = _interopRequireDefault(_layer); var _map = require('../propTypes/map'); var _map2 = _interopRequireDefault(_map); var _index = require('../propTypes/index'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var SimpleInfoWindow = (_temp = _class = function (_InfoBox) { _inherits(SimpleInfoWindow, _InfoBox); function SimpleInfoWindow() { _classCallCheck(this, SimpleInfoWindow); return _possibleConstructorReturn(this, (SimpleInfoWindow.__proto__ || Object.getPrototypeOf(SimpleInfoWindow)).apply(this, arguments)); } return SimpleInfoWindow; }(_InfoBox3['default']), _class.defaultProps = { enableAutoPan: true, align: window.INFOBOX_AT_TOP, show: true, offset: window.BMap && new window.BMap.Size(0, 43), boxClass: 'ant-map-maplabel', boxStyle: {}, closeIconMargin: '2px', closeIconUrl: '//cdncs.101.com/v0.1/static/fish/image/blank.gif', contentEvents: {}, ignoreMarkerSize: true }, _class.propTypes = { children: _propTypes2['default'].node, offset: _index.size, boxClass: _propTypes2['default'].string, boxStyle: _propTypes2['default'].object, closeIconMargin: _propTypes2['default'].string, closeIconUrl: _propTypes2['default'].string, enableAutoPan: _propTypes2['default'].bool, align: _propTypes2['default'].oneOf([window.INFOBOX_AT_TOP, window.INFOBOX_AT_BOTTOM]), show: _propTypes2['default'].bool, contentEvents: _propTypes2['default'].object, ignoreMarkerSize: _propTypes2['default'].bool }, _class.contextTypes = { map: _map2['default'], markerInstance: _layer2['default'] }, _temp); exports['default'] = SimpleInfoWindow; module.exports = exports['default'];