所用到的css 及 js文件如下
<link rel="stylesheet" href="{% static 'font-awesome-4.7.0/css/font-awesome.css' %}" />
<link rel="stylesheet" href="{% static 'leaflet/awesome-markers/leaflet.awesome-markers.css' %}" />
在js文件之间加载leaftlet js 文件,一般使用最新版 如1.8
使用图标
L.marker([31,117], {rotationAngle:270 ,icon: L.AwesomeMarkers.icon({icon: ‘cloud-download’, prefix: ‘fa’, markerColor: ‘green’,spin:true}) }).addTo(map);