2.0.28 • Published 7 months ago

@types/leaflet.awesome-markers v2.0.28

Weekly downloads
1,104
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/leaflet.awesome-markers

Summary

This package contains type definitions for Leaflet.awesome-markers plugin v2.0 with Leaflet (https://github.com/sigma-geosistemas/Leaflet.awesome-markers#properties).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.awesome-markers/v0.

index.d.ts

// Type definitions for Leaflet.awesome-markers plugin v2.0 with Leaflet 0.x
// Project: https://github.com/sigma-geosistemas/Leaflet.awesome-markers#properties
// Definitions by: Egor Komarov <https://github.com/Odrin>, Marcel Sebek <https://github.com/sebek64>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as Leaflet from "leaflet";

declare global { namespace L {
    module AwesomeMarkers {
        var version: string;

        function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon;

        interface IconStatic extends Leaflet.IconStatic {
            /**
              * Creates an icon instance with the given options.
              */
            new (options: IconOptions): Icon;

            Default: {
                /**
                  * Creates a default icon instance with the given options.
                  */
                new (options?: IconOptions): Icon.Default;

                imagePath: string;
            };
        }

        interface Icon extends Leaflet.Icon {
            options: AwesomeMarkers.IconOptions;
        }

        interface IconOptions extends Leaflet.IconOptions {
            /**
            * Name of the icon. See glyphicons or font-awesome.
            */
            icon?: string | undefined;

            /**
            * Select de icon library. 'fa' for font-awesome or 'glyphicon' for bootstrap 3.
            */
            prefix?: 'fa' | 'glyphicon' | undefined;

            /**
            * Color of the marker
            */
            markerColor?: 'red' | 'darkred' | 'orange' | 'green' | 'darkgreen' | 'blue' | 'purple' | 'darkpurple' | 'cadetblue' | undefined;

            /**
            * Color of the icon. 'white', 'black' or css code (hex, rgba etc).
            */
            iconColor?: 'white' | 'black' | string | undefined;

            /**
            * Make the icon spin. true or false. Font-awesome required
            */
            spin?: boolean | undefined;

            /**
            * Additional classes in the created tag
            */
            extraClasses?: string | undefined;
        }

        var Icon: AwesomeMarkers.IconStatic;
    }
} }

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:37 GMT
  • Dependencies: @types/leaflet
  • Global values: none

Credits

These definitions were written by Egor Komarov, and Marcel Sebek.

2.0.28

7 months ago

2.0.26

9 months ago

2.0.27

7 months ago

0.0.3

9 months ago

0.0.5

7 months ago

0.0.4

9 months ago

0.0.6

7 months ago

0.0.2

3 years ago

2.0.25

3 years ago

2.0.24

5 years ago

0.0.1

7 years ago

2.0.23

7 years ago

2.0.22

7 years ago

0.0.0

7 years ago

2.0.21

7 years ago

2.0.20

7 years ago

2.0.19

8 years ago

2.0.18

8 years ago

2.0.17

8 years ago

2.0.16-alpha

8 years ago

2.0.15-alpha

8 years ago

2.0.14-alpha

8 years ago

2.0.13-alpha

8 years ago

2.0.12-alpha

8 years ago

2.0.11-alpha

8 years ago

2.0.10-alpha

8 years ago

2.0.5-alpha

8 years ago

2.0.4-alpha

8 years ago