Global

Methods

colorDarkening(pinColor) → {string}

Makes original color darker (for stroke).
Parameters:
Name Type Description
pinColor string color of the pin.
Source:
Returns:
- color in RGB format.
Type
string

colorExtractor(pinOriginalColor) → {object}

Extracts color in RGB format.
Parameters:
Name Type Description
pinOriginalColor string color of the pin.
Source:
Returns:
- colors of pin and pin stroke.
Type
object

markerOutliner(pinOriginalColor, width, height) → {string}

Outlines Leaflet map marker pins via HTML5 Canvas.
Parameters:
Name Type Default Description
pinOriginalColor string color of the pin.
width number 50 width of the pin.
height number 82 height of the pin.
Source:
Returns:
- data URI in base64 representing an image.
Type
string

pinMaker(pinColor, pinColorDark, width, height) → {HTMLElement}

Outlines pin.
Parameters:
Name Type Description
pinColor string color of the pin.
pinColorDark string color of the stroke.
width number width of the pin.
height number height of the pin.
Source:
Returns:
- canvas.
Type
HTMLElement

setCoordinates(width, height) → {object}

Sets pin coordinates for canvas outlining.
Parameters:
Name Type Description
width number width of the pin.
height number height of the pin.
Source:
Returns:
- coordinates for pin outlining.
Type
object