N
N
Novomir Lobanov2015-10-22 10:41:03
API
Novomir Lobanov, 2015-10-22 10:41:03

How to set custom markers for the start and end of a route in Yandex.Maps?

The site ( mos-nt.ru/logistic) is currently building a route between points, the beginning and end display standard markers, can they be changed to my own images?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2015-10-22
@healqq

You can change it, just get a list of route points from the route object in this way:
After that, you can change the options for these points using the method
. The names of the options are the same as the options for a regular placemark. Setting your own display is described in this example: Yandex maps sandbox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question