0.2.2 • Published 6 years ago

marker-maker v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

MarkerMaker

Small service for outlining map pins via HTML5 Canvas.

Especially useful for creating custom Leaflet markers.

Fill free to try out the demo and go through the documentation.

Setup

npm install marker-maker --save
import * as markerOutliner from 'marker-maker'

or simply add to your HTML file the following code:

<script src="https://cdn.rawgit.com/mmaltsev/MarkerMaker/7c945bde/dist/main.js"></script>

Usage

let iconUrl = markerOutliner(color, width, height, markerType)

For a better understanding just go through the demo code.

Options

markerOutliner(color, width, height, markerType)

VariableTypeDescription
colorstringcolor of the marker (standard / HEX / RGB)
widthnumberwidth of the marker
heightnumberheight of the marker
markerTypestring'pin' / 'house' (optional, 'pin' by default)

Example

License

MIT License. Copyright (c) 2017 Maxim Maltsev.

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago