线条代码
var antPath = L.polyline.antPath;
var polyline = antPath(lineData, {
"paused": true, //暂停 初始化状态
"reverse": false, //方向反转
"delay": 6000, //延迟,数值越大效果越缓慢
"dashArray": [10, 50], //间隔样式
"weight": 5, //线宽
"opacity": 0.8, //透明度
"color": "#27AFFF", //颜色
"pulseColor": "#FFF", //块颜色
}).bindPopup(popup);
线条图层
featureLayers.addLayer(polyline);
标记点图层
graphicLayer = L.supermap.graphicLayer([], {
render: "canvas",
onClick : function(graphic,layer){
handleGraphicClick(graphic,layer);
}
});
设置顺序
featureLayers.bringToBack(graphicLayer);
请问怎么解决?