| | |
| | | import React, {Component} from 'react' |
| | | import './ExampleDrawPage.css' |
| | | import {Bp, GIS} from "../iclient3d-plot-diy"; |
| | | import {Bp, GIS} from "iclient3d-plot-diy"; |
| | | |
| | | ; |
| | | import {Button} from "antd"; |
| | |
| | | .then(mdText => { |
| | | this.setState({htmlString: window.marked.parse(mdText)}); |
| | | }); |
| | | this.showData(); |
| | | //监听拨盘事件 |
| | | this.mapFunction.addBpListener(function (id, dom) { |
| | | if (id && dom) { |
| | |
| | | {name: '图标1', img: './project3d/icon/bpImgs/icon-1.png'}, |
| | | {name: '图标2', img: './project3d/icon/bpImgs/icon-2.png'}, |
| | | {name: '图标3', img: './project3d/icon/bpImgs/icon-3.png'}, |
| | | {name: '图标4', img: './project3d/icon/bpImgs/icon-4.png'}, |
| | | {name: '关闭', img: './project3d/icon/bpImgs/icon-4.png'}, |
| | | ] |
| | | }; |
| | | this.setState({ |
| | |
| | | this.setState({ |
| | | clickBpIndex: index |
| | | }); |
| | | if (index === 3) { |
| | | this.closeBp(); |
| | | } |
| | | }); |
| | | } |
| | | }, this); |