Answer the question
In order to leave comments, you need to log in
How to replace standard markers when building a route in yandex maps?
Good afternoon))
Using Yandex maps, I build a route from point A to point B using the method ymaps.route()
The code itself:
ymaps.route([
userCoords,
...routesCoords
]).then(route => {
route.getPaths().options.set({
strokeColor: '#E30611',
strokeWidth: 2,
strokeStyle: '1 2'
});
map.geoObjects.add(route);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question