"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = Map;
var _jquery = _interopRequireDefault(require("jquery"));
var _react = _interopRequireDefault(require("react"));
var _mapStyle = require("./mapStyle");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable no-undef */

function Map(props) {
  window.console.log(props);
  _jquery["default"].getScript("//api.map.baidu.com/getscript?type=webgl&v=1.0&ak=1XjLLEhZhQNUzd93EjU5nOGQ", function () {
    var mapCenter = [119.603701, 30.636529];
    // @ts-ignore
    var flztMap = new window.BMapGL.Map('modalMap', {
      style: {
        styleJson: _mapStyle.customStyle
      }
    });
    // @ts-ignore
    var point = new window.BMapGL.Point(mapCenter[0], mapCenter[1]);
    flztMap.centerAndZoom(point, 15);
    // @ts-ignore
    flztMap.addOverlay(new window.BMapGL.Marker(point));
  });
  return /*#__PURE__*/_react["default"].createElement("div", {
    id: "modalMap",
    style: {
      width: '100%',
      height: '100%'
    }
  });
}
//# sourceMappingURL=Map.js.map
