地图
或许丶
everything is possible
展开
-
处理vue3.x在高德地图1.x版本无法正常使用的问题
码云仓库(开源插件)缩放或者放大地图就会报错,报错信息如下:官方解决方法:升级2.x版本,但是2.x版本卡的跟PPT一样,暂时不能使用经测试得出解决方案:// 高德地图1.x版本在vue3的巨坑,不能声明成vue响应式对象let map= null;const initMap = async () => { const AMap = await AMapLoader.load({ key: aMapKey, // 申请好的Web端开发者Key,首次调用 load 时原创 2021-09-18 09:59:57 · 412 阅读 · 0 评论 -
js根据坐标判断构成单个多边形是否合法
安装npm install @turf/helpers @turf/line-intersect代码/** * 几何工具库 * @author maybe * @license https://gitee.com/null_639_5368 */import * as turf from "@turf/helpers"import lineIntersect from "@turf/line-intersect"/** * 坐标转线段 * @param {*} path原创 2021-06-04 14:52:26 · 382 阅读 · 0 评论