Skip to content
/ mdi-paths Public

This library is a collection of SVG paths to render Material Design Icons in Google Maps API v3, sourced from the MaterialDesign project.

License

Notifications You must be signed in to change notification settings

e04/mdi-paths

Repository files navigation

mdi-paths

main_image

This library is a collection of SVG paths, sourced from the MaterialDesign project. In particular, this was created for Google Maps API v3 markers.

Usage

npm i mdi-paths

import each icons

import {library_books} from 'mdi-paths'

const marker = new google.maps.Marker({
    map: map,
    position: new google.maps.LatLng(0, 0),
    icon: {
        fillColor: '#FFFFFF',
        fillOpacity: 1,
        path: library_books,
        strokeColor: '#000000',
        strokeWeight: 2,
    },
})

// Names that begin with a number must begin with an underscore.
import {_3d_rotation} from 'mdi-paths'

// Names that are JavaScript's keywords must end with an underscore.
import {delete_} from 'mdi-paths'

import all icon paths

import mdiPaths from 'mdi-paths'

const marker = new google.maps.Marker({
    map: map,
    position: new google.maps.LatLng(0, 0),
    icon: {
        fillColor: '#FF0000',
        fillOpacity: 1,
        path: mdiPaths.library_books,
        scale: 1,
        strokeColor: '#FF0000',
        strokeWeight: 1,
    },
})

About

This library is a collection of SVG paths to render Material Design Icons in Google Maps API v3, sourced from the MaterialDesign project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages