2.0.28 • Published 2 years ago

@types/leaflet.awesome-markers v2.0.28

Weekly downloads
1,104
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.26

2 years ago

2.0.27

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.2

4 years ago

2.0.25

4 years ago

2.0.24

6 years ago

0.0.1

8 years ago

2.0.23

8 years ago

2.0.22

8 years ago

0.0.0

8 years ago

2.0.21

8 years ago

2.0.20

8 years ago

2.0.19

9 years ago

2.0.18

9 years ago

2.0.17

9 years ago

2.0.16-alpha

9 years ago

2.0.15-alpha

9 years ago

2.0.14-alpha

9 years ago

2.0.13-alpha

9 years ago

2.0.12-alpha

9 years ago

2.0.11-alpha

9 years ago

2.0.10-alpha

9 years ago

2.0.5-alpha

9 years ago

2.0.4-alpha

9 years ago