摘要: function addSector(coord, dir) { //var origi_point = ol.proj.transform(coord, 'EPSG:4326', 'EPSG:3857');//根据经纬度生成圆点 //调用自定义的写好的生成扇形的 方法 //圆心 半径 边数 弧度 阅读全文
posted @ 2021-05-21 13:49 武向前 阅读(851) 评论(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 武向前 阅读(720) 评论(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 武向前 阅读(1107) 评论(0) 推荐(0)