Skip to content

Google Maps JavaScript API overlay object to easily add markers with an SVG image as the icon.

License

Notifications You must be signed in to change notification settings

defvayne23/SVGMarker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVGMarker

Google Maps JavaScript API overlay class to easily add markers with an SVG image as the icon.

Install

yarn

yarn add @defvayne23/svg-marker

npm

npm install @defvayne23/svg-marker

Examples

FAQ

  • Why is this class useful? The API allows SVGs as icons, but only a single path. I had a use case of a complex image that needed look great at about 50x50 pixels. SVG fits this, but the SVGs required multiple paths and multiple colors. I couldn't find a simple overlay class, so I created my own.

License

MIT

About

Google Maps JavaScript API overlay object to easily add markers with an SVG image as the icon.

Resources

License

Stars

Watchers

Forks

Packages

No packages published