src/L.PolylineDecorator.js
function(patternDef, latLngs) {
        return {
            symbolFactory: patternDef.symbol,
            // Parse offset and repeat values, managing the two cases:
            // absolute (in pixels) or relative (in percentage of the polyline length)
            offset: parseRelativeOrAbsoluteValue(patternDef.offset),
            endOffset: parseRelativeOrAbsoluteValue(patternDef.endOffset),
            repeat: parseRelativeOrAbsoluteValue(patternDef.repeat),
        };
    }
function(patternDef, latLngs) {
        return {
            symbolFactory: patternDef.symbol,
            // Parse offset and repeat values, managing the two cases:
            // absolute (in pixels) or relative (in percentage of the polyline length)
            offset: parseRelativeOrAbsoluteValue(patternDef.offset),
            endOffset: parseRelativeOrAbsoluteValue(patternDef.endOffset),
            repeat: parseRelativeOrAbsoluteValue(patternDef.repeat),
        };
    }
function ( patternDef , latLngs ) { return { symbolFactory : patternDef . symbol , // Parse offset and repeat values, managing the two cases: // absolute (in pixels) or relative (in percentage of the polyline length) offset : parseRelativeOrAbsoluteValue ( patternDef . offset ) , endOffset : parseRelativeOrAbsoluteValue ( patternDef . endOffset ) , repeat : parseRelativeOrAbsoluteValue ( patternDef . repeat ) , } ; }
Parse the pattern definition
Parse the pattern definition