05 2021 档案

摘要:https://github.com/PanJiaChen/vue-element-admin https://panjiachen.github.io/vue-element-admin-site/zh/ 阅读全文
posted @ 2021-05-27 11:31 武向前 阅读(69) 评论(0) 推荐(0)
摘要:监听是否全屏以及退出全屏 <p> <span class="fullscreen" style @click="toggleFullScreen"> <el-tooltip class="item" effect="dark" :content="isFullScreen?'退出全屏':'全屏'" 阅读全文
posted @ 2021-05-25 16:42 武向前 阅读(2511) 评论(0) 推荐(0)
摘要:最近用openlayers地图写了点东西,把代码拿出来备份一份,里面方法还没有整合封装,都有注释,可以稍作参考,有一部分代码是同事写的,我也没做处理,暂时先这样了(可能不理想,我只是简单记录一下,仅供参考)。效果图如下: (1)红色图标当前设备显示(图标显示功能) (2)蓝色图标其它设备显示(图标显 阅读全文
posted @ 2021-05-25 10:09 武向前 阅读(973) 评论(0) 推荐(0)
摘要:/** * 数组分割成多数组 * @param {[type]} array 要分割的数组 * @param {[type]} size 每个数组的个数 * @return {[type]} 返回一个数组 */ let chunk = function (array, size) { let [st 阅读全文
posted @ 2021-05-22 13:44 武向前 阅读(288) 评论(0) 推荐(0)
摘要:function addSector(coord, dir) { //var origi_point = ol.proj.transform(coord, 'EPSG:4326', 'EPSG:3857');//根据经纬度生成圆点 //调用自定义的写好的生成扇形的 方法 //圆心 半径 边数 弧度 阅读全文
posted @ 2021-05-21 13:49 武向前 阅读(875) 评论(1) 推荐(1)
摘要:上代码之间,可以直接浏览器运行 <!DOCTYPE html> <html> <head> <title>Icon Symbolizer</title> <link rel="stylesheet" href="https://openlayers.org/en/v3.20.1/css/ol.css 阅读全文
posted @ 2021-05-21 09:50 武向前 阅读(766) 评论(0) 推荐(0)
摘要:直接上代码 function destination(lng,lat, heading, distance) { //计算扇形的眯点坐标 heading = (heading + 360) % 360; var rad = Math.PI / 180, radInv = 180 / Math.PI, 阅读全文
posted @ 2021-05-21 09:45 武向前 阅读(1173) 评论(0) 推荐(0)