# ui.leaflet.webpack

> Webpack version of ui-leaflet (https://github.com/angular-ui/ui-leaflet)

Latest version **1.0.5** (published 2017-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install ui.leaflet.webpack
pnpm add ui.leaflet.webpack
yarn add ui.leaflet.webpack
bun add ui.leaflet.webpack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-02-05 |
| First published | 2017-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vmvini |
| Maintainers | vmvini |
| Keywords | webpack, ui-leaflet |

## Links

- npm: https://www.npmjs.com/package/ui.leaflet.webpack
- Repository: https://github.com/vmvini/ui.leaflet.webpack
- Homepage: https://github.com/vmvini/ui.leaflet.webpack#readme
- Issues: https://github.com/vmvini/ui.leaflet.webpack/issues
- npm.io page: https://npm.io/package/ui.leaflet.webpack

## Dependencies (2)

- [angular-simple-logger](https://npm.io/package/angular-simple-logger.md) 0.1.x
- [leaflet.markercluster.webpack](https://npm.io/package/leaflet.markercluster.webpack.md) ^1.0.2

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-02-05
- 1.0.4 — 2017-02-05
- 1.0.3 — 2017-01-31
- 1.0.2 — 2017-01-31
- 1.0.1 — 2017-01-31
- 1.0.0 — 2017-01-31

## README

UI-Leaflet.webpack
=====================

UI-Leaflet (https://github.com/angular-ui/ui-leaflet) and Leaflet markercluster (https://github.com/Leaflet/Leaflet.markercluster) structured with webpack.


### Install

Install with npm: `npm install --save ui.leaflet.webpack`

### Usage

```javascript
require('ui.leaflet.webpack');

angular.module('YourModule', ['ui-leaflet']);
```

### Notes
This module already requires Leaflet and Leaflet MarkerCluster plugin, so don't require them again. 

Also, the Leaflet global object 'L' is exposed through an angular value 'L':

```javascript
angular.module('example', ['ui-leaflet'])
        .service('MyService', function(L){
            // L is the Leaflet global object. (Not global anymore :)
        });
```

### Build Notes
This module has some files written with ES6, so you need a babel loader to build.

Install the babel-loader
```bash
npm install babel-loader babel-core babel-preset-es2015 webpack --save-dev
```

Add this loader into your webpack.config file
```javascript
{
    test: /\.js$/,
    exclude: /(node_modules(?!\/ui.leaflet.webpack)|bower_components)/,
    loader: 'babel-loader?presets[]=es2015'
},
```

As this module requires some css files, you have to install a css loader.

Installing:
```bash
npm install --save-dev css-loader style-loader  
```

And configure the loader in webpack.config:
```javascript
{ 
    test: /\.css$/, loader: "style-loader!css-loader" 
}
```

---
_Source: https://npm.io/package/ui.leaflet.webpack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
