/* * @Descripttion: * @version: 1.0 * @Author: zhangti * @Date: 2019-10-22 11:39:34 * @LastEditors: sueRimn * @LastEditTime: 2019-10-22 13:55:37 */ /** * 封装绘制功能 * 点线面矩形 */ import DrawDynamicTool from './DrawDynamicTool.js'; export default class Draw{ constructor(core){ this.drawDynamic = new DrawDynamicTool(core); } remove(){ if(this.drawDynamic == null)return false; this.drawDynamic.remove(); this.drawDynamic = null; } //点 drawPoint(fn){ let _self = this; _self.drawDynamic.drawPoint(function(positions){ var wgs84_positions = []; for(var i=0; i