mdi-paths
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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,
    },
})

Package Sidebar

Install

npm i mdi-paths

Weekly Downloads

0

Version

0.0.2

License

Apache License 2.0

Unpacked Size

906 kB

Total Files

13

Last publish

Collaborators

  • fewaasdf2