<commit_before># Leaflet.UTFGrid

Provides a [UTFGrid](https://github.com/mapbox/utfgrid-spec) implementation for Leaflet 1.0 - 1.1.0.

```L.UTFGrid``` provides basic UTFGrid functionality including hover and click events.

```L.UTFGridCanvas``` provides highlighting of areas using ```<canvas>``` tiles.  Optionally can highlight entire 
feature, not just the portion of it within a single tile.
 

See the [example](//consbio.github.io/Leaflet.UTFGrid).

*Only supports Leaflet >= 1.0*   

Note: only supports browsers that provide [canvas](http://caniuse.com/#search=canvas). 




## Usage

Requires [corslite](https://github.com/mapbox/corslite/).  This is included in `L.UTFGrid-min.js`
<commit_msg>Add npm install instructions<commit_after># Leaflet.UTFGrid

Provides a [UTFGrid](https://github.com/mapbox/utfgrid-spec) implementation for Leaflet 1.0 - 1.1.0.

```L.UTFGrid``` provides basic UTFGrid functionality including hover and click events.

```L.UTFGridCanvas``` provides highlighting of areas using ```<canvas>``` tiles.  Optionally can highlight entire 
feature, not just the portion of it within a single tile.
 

See the [example](//consbio.github.io/Leaflet.UTFGrid).

*Only supports Leaflet >= 1.0*   

Note: only supports browsers that provide [canvas](http://caniuse.com/#search=canvas). 


## Install

```
npm install leaflet-utfgrid
```



## Usage

Requires [corslite](https://github.com/mapbox/corslite/).  This is included in `L.UTFGrid-min.js`

{'fraction_non_alphanumeric': 0.13519021739130435, 'fraction_numerical': 0.009510869565217392, 'mean_word_length': 4.455555555555556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '995673', 'n_tokens_mistral': 501, 'n_tokens_neox': 451, 'n_words': 137}