Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Configuring the view of a multiroute

Save as filesEdit on JSFiddle

Rules for displaying routes are set in the router options.

The following prefixes are available for setting options for sections of a multiroute:

  • wayPoint - display options for waypoints.
  • wayPointStart - display options for the starting waypoint.
  • wayPointFinish - display options for the destination waypoint.
  • viaPoint - display options for thru points.
  • pin - display options for point markers at waypoints.
  • route - display options for routes.
  • routeActive - display options for the active route.
  • routePedestrianSegment - Options for walking segment lines on the route.
  • editor - multiroute editor options (see multiRouter.Editor).

In this example, two routes with different display options are added to the map. To find out how to set two different views for routes that share the same model, see the Reference.
Пишете на JavaScript? У нас есть вакансии
Mon Oct 31 2022 13:07:35 GMT+0300 (Moscow Standard Time)