How can I see all the entire routes will be between two points in yandex map api ?
drawRoute: function (targetX, targetY) { myLocation.then(function (loc) { ymaps.route([ [myloc.latitude, myloc.longitude], [targetX, targetY] ], { mapStateAutoApply: true }).then(function (route) { yandex.clearRoute(); route.getPaths().options.set({ balloonContenBodyLayout: ymaps.templateLayoutFactory.createClass('$[properties.humanJamsTime]'), strokeColor: '0000ffff', opacity: 0.9, type: "route" }); myMap.geoObjects.add(route); myMap.balloon.close(); }); }); }, console.log(route.getPaths())//Get All Routes between two points in Array
أكثر...
drawRoute: function (targetX, targetY) { myLocation.then(function (loc) { ymaps.route([ [myloc.latitude, myloc.longitude], [targetX, targetY] ], { mapStateAutoApply: true }).then(function (route) { yandex.clearRoute(); route.getPaths().options.set({ balloonContenBodyLayout: ymaps.templateLayoutFactory.createClass('$[properties.humanJamsTime]'), strokeColor: '0000ffff', opacity: 0.9, type: "route" }); myMap.geoObjects.add(route); myMap.balloon.close(); }); }); }, console.log(route.getPaths())//Get All Routes between two points in Array
أكثر...