坐标转换:4326转3857
摘要:function WGS84ToMercator(lonlat){ const coord = { lat:0, lng:0 }; const earthRad = 6378137.0; //地球半径 coord.lat = lonlat.lng * Math.PI / 180 * earthRad
阅读全文
Vue 使用svg
摘要:1 src下建文件夹 index.js import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg component // register globally Vue.component('svg-icon', Sv
阅读全文