Commit 3ffdbbf29fea888007780d59d7cca977e46b5de7

Authored by yiming
1 parent 96143869

bf

bsthLineProfiles/src/main/resources/templates/system/line/map.html
@@ -434,7 +434,7 @@ body, html, #container { @@ -434,7 +434,7 @@ body, html, #container {
434 onGetBusListComplete: function onGetBusListComplete (result) { 434 onGetBusListComplete: function onGetBusListComplete (result) {
435 let fstLine = result.getBusListItem(0);//通过线路名查询线路列表默认第一条 435 let fstLine = result.getBusListItem(0);//通过线路名查询线路列表默认第一条
436 bus.getBusLine(fstLine); 436 bus.getBusLine(fstLine);
437 - }/*,onPolylinesSet: function onPolylinesSet(polyline){//添加公交线时候回调函数.参数:ply:Polyline 公交线路几何对象 437 + },onPolylinesSet: function onPolylinesSet(polyline){//添加公交线时候回调函数.参数:ply:Polyline 公交线路几何对象
438 //通过删除api自带的折线 然后改变颜色重新渲染 438 //通过删除api自带的折线 然后改变颜色重新渲染
439 map.clearOverlays(); 439 map.clearOverlays();
440 //https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html#a3b0 440 //https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html#a3b0
@@ -451,7 +451,7 @@ body, html, #container { @@ -451,7 +451,7 @@ body, html, #container {
451 for(var i in sl){ 451 for(var i in sl){
452 map.addOverlay(sl[i]); 452 map.addOverlay(sl[i]);
453 } 453 }
454 - }*/ 454 + }
455 }); 455 });
456 456
457 457