Shows symbols on the extremities of a Polyline, using SVG markers.
Check out the demo !
The version on the gh-pages
branch targets Leaflet 0.7.3.
Please use the leaflet0.8-dev
branch to be compatible with the development version of Leaflet (0.8).
To display dots at the extremities of a Polyline:
var layer = L.polyLine(...);
layer.showExtremities('dotM');
There is currently 5 types of markers:
stopM
: perpendicular linesquareM
: squaredotM
: dotdotL
: large dotarrowM
: arrow
- Create the defs node before the paths (#10)