当我尝试通过开放路线服务创建路点时,我显示了这个错误:Uncaught TypeError: L.Routing.openrouteservice is not a constructor My codeL.latLng(3.102739, 101.598077), ],
router: new L.Routing.openrouteservice
waypoints: [ L.latLng(coords2) router: new L.Routing.openrouteservicerouter: new L.Routing.openrouteservice({api_key:'HIDDEN', profile:'footwalking'), router: new L.Routing.openrouteservice('http
我在openrouteservice.org上注册了一个API。如何将其导入OSRMRoadManager?packageName)
(roadManager as OSRMRoadManager).setService("https://api.openrouteservice.org/v2/directions