# leaflet.marker.highlight

> Highlight performance for L.marker

Latest version **0.0.3** (published 2016-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install leaflet.marker.highlight
pnpm add leaflet.marker.highlight
yarn add leaflet.marker.highlight
bun add leaflet.marker.highlight
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-12-12 |
| First published | 2016-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 64 |
| Author | brandonxiang |
| Maintainers | brandonxiang |
| Keywords | leaflet, highlight, marker |

## Links

- npm: https://www.npmjs.com/package/leaflet.marker.highlight
- Repository: https://github.com/brandonxiang/leaflet.marker.hightlight
- Homepage: https://github.com/brandonxiang/leaflet.marker.hightlight#readme
- Issues: https://github.com/brandonxiang/leaflet.marker.hightlight/issues
- npm.io page: https://npm.io/package/leaflet.marker.highlight

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-12-12

## README

# leaflet.marker.highlight
Highlight effects for L.marker.

## Demo

[DEMO](https://brandonxiang.github.io/leaflet.marker.highlight/examples/)


## Installation

```
npm install leaflet.marker.highlight --save
```

## Usage

### Temporarily Highlight

Highlight effects will occur in the situation that you put your mouse over the marker.

You can set it when initializing a marker. 

```
var marker1 = L.marker([51.5, -0.09], {highlight: 'temporary'}).addTo(map);
```

Or you can use a method to enable the highlight effects.

```
marker1.enableTemporaryHighlight();
```

```
marker1.disableTemporaryHighlight();
```


### Permanently Highlight

Highlight effects are always on.

```
var marker1 = L.marker([51.5, -0.09], {highlight: true}).addTo(map);
```

or

```
marker1.enableHighlight();
```

Cancel the marker highlight effects by 

```
marker1.disableHighlight();
```

## License

[MIT](LICENSE)


## Chinese Version

[README](README_CN.md)

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