摘要: 首先确保在项目中引入了echarts和echarts-gl "echarts": "^4.9.0", "echarts-gl": "^1.1.2" 剩下的配置好optionData的数据,交给代码 <template> <div class="water-eval-container"> <div 阅读全文
posted @ 2021-01-28 14:53 KaypoGeng 阅读(50617) 评论(15) 推荐(6)
摘要: 1.面积计算 computeSignedArea(path) { //传入path:[{lat:,lng:},{lat:,lng:}] let _this = this; let radius= 6371009 let len = path.length; if (len < 3) return 0 阅读全文
posted @ 2020-12-07 14:13 KaypoGeng 阅读(1091) 评论(0) 推荐(0)
摘要: chrome 右键页面无反应 有一些页面用chrome打开时,f12无法打开开发者工具,右键也被屏蔽了,无法复制、审查元素等。例如http://cesium.xin/ 后来在网上找到2种解决方案,下面详细说一下 1.添加网页,将下面代码复制到网址栏,然后遇到禁止右键的页面,左键点一下该书签就OK了~ 阅读全文
posted @ 2020-12-02 13:04 KaypoGeng 阅读(1773) 评论(0) 推荐(0)