Commit cf82f26e0676fa01e48067e5171eef6f5816cf82

Authored by 王通
1 parent d823ec73

1.非正常使用百度api问题

src/main/resources/static/pages/base/stationroute/js/stationroute-list-map.js
... ... @@ -811,7 +811,8 @@ window.WorldsBMap = function () {
811 811 }
812 812 }
813 813 // 路段中间点为中心
814   - var c = p.ia[Math.floor(p.ia.length/2)];
  814 + var path = p.getPath();
  815 + var c = path[Math.floor(path.length / 2)];
815 816 mapBValue.centerAndZoom(new BMap.Point(c.lng, c.lat), 18);
816 817 p.addEventListener('dblclick', function () {
817 818 /** 设置修改路段集合对象为空 */
... ...