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

The arrow on the map

Save as filesEdit on JSFiddle

The example shows how to create a module for drawing arrows on the map based on the Polyline lines class.

The example creates two custom modules - one is responsible for the arrow object class, and the other includes the visual display of the arrow - a class implementing the IOverlay interface. In the example, the modules are located in the same file. For project development, we recommend putting the modules in separate files.