我正在使用mapbox-gl-directions,版本:4.0.2
。我想排除通行费,渡轮或高速公路。这是一个文档:API,它说您可以传递exclude
参数:
但是,尽管这样传递它,却行不通:
new MapboxDirections({
accessToken: this.accessToken,unit: 'metric',profile: 'mapbox/driving',flyTo: false,styles,controls: {
inputs: false,instructions: false,profileSwitcher: false
},exclude: 'ferry'
});
有人知道如何通过吗?