import React from "react" import Widget from "../../../canvas/widgets/base" import Tools from "../../../canvas/constants/tools" import { removeKeyFromObject } from "../../../utils/common" import MapImage from "./assets/map.png" import { MinusOutlined, PlayCircleFilled, PlusOutlined } from "@ant-design/icons" class MapView extends Widget{ static widgetType = "map_view" constructor(props) { super(props) this.droppableTags = null const newAttrs = removeKeyFromObject("layout", this.state.attrs) this.state = { ...this.state, size: { width: 400, height: 250 }, } } componentDidMount(){ super.componentDidMount() this.setWidgetName("Map viewer") this.setAttrValue("styling.backgroundColor", "#E4E2E2") } getToolbarAttrs(){ const toolBarAttrs = super.getToolbarAttrs() return ({ id: this.__id, widgetName: toolBarAttrs.widgetName, size: toolBarAttrs.size, ...this.state.attrs, }) } renderContent(){ return (