Skip to content
No description, website, or topics provided.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
GreatCircle 添加了两个固定点之间的大圆算法 Jun 15, 2017
images 添加了两个固定点之间的大圆算法 Jun 15, 2017
.gitignore
README.md 添加了两个固定点之间的大圆算法 Jun 15, 2017
index.html
leaflet-isosceles.js 添加了等腰三角插件 May 5, 2017
leaflet-windbarb.js
wind.html 添加了两个固定点之间的大圆算法 Jun 15, 2017

README.md

leaftlet-windbarb

使用最新的leaftlet@1.0.3版本API,绘制气象风矢图:

Demo网址

风羽图 大圆航线

使用方法

var icon = L.WindBarb.icon({deg: 180, speed:16,pointRadius:0,strokeColor:'#ce3431'}); var marker = L.marker(31,121], {icon: icon}).addTo(map).on('click', markerOnClick);

可以自定义的参数

 options: {
            pointRadius: 4, 
            pointColor:'#2B85C7',
            pointStroke:'#111',
            strokeWidth: 2,
            strokeColor:'#000',
            strokeLength: 12,
            barbSpaceing: 4,
            barbHeight: 10,
            forceDir: false
        }

预览效果图

image

大圆航线效果图

image

You can’t perform that action at this time.