<commit_before>Leaflet.StyleEditor
=============

The [Leaflet](http://leafletjs.com/) StyleEditor allows to edit the style of any feature drawn within Leaflet.
After activating the tool, the features can be edited by simply clicking them within the map.
Current Leaflet version is: 0.7.2.

Check out the [Demo](http://dwilhelm89.github.io/Leaflet.StyleEditor/)!

Usage
-----

```javascript
//Initialize the StyleEditor
var styleEditor = L.control.styleEditor({
    position: "topleft"
});
map.addControl(styleEditor);
````

It is also possible to specify different color ramps or to specify the set of markers:
```javascript
var styleEditor = L.control.styleEditor({
    position: "topleft",
    colorRamp: ['#1abc9c', '#2ecc71', '#3498db'],
    markers: ['circle-stroked', 'circle', 'square-stroked', 'square']
});
map.addControl(styleEditor);
````

TODO
-----
* Create a tooltip: "Click on feature...."
* Better representation of marker icons (img instead of plain text)
* Add listener to Leaflet.draw events
* Line strokes
* Restore default button
* Visual highlight of the selected feature


Author
-----
<NAME>, 2014<commit_msg>added leaflet.draw example<commit_after>Leaflet.StyleEditor
=============

The [Leaflet](http://leafletjs.com/) StyleEditor allows to edit the style of any feature drawn within Leaflet.
After activating the tool, the features can be edited by simply clicking them within the map.
Current Leaflet version is: 0.7.2.

Check out the [Demo](http://dwilhelm89.github.io/Leaflet.StyleEditor/)!

And another [demo](http://dwilhelm89.github.io/Leaflet.StyleEditor/StyleEditorWithLeafletDraw.html) with Leaflet.draw.

Usage
-----

```javascript
//Initialize the StyleEditor
var styleEditor = L.control.styleEditor({
    position: "topleft"
});
map.addControl(styleEditor);
````

It is also possible to specify different color ramps or to specify the set of markers:
```javascript
var styleEditor = L.control.styleEditor({
    position: "topleft",
    colorRamp: ['#1abc9c', '#2ecc71', '#3498db'],
    markers: ['circle-stroked', 'circle', 'square-stroked', 'square']
});
map.addControl(styleEditor);
````

TODO
-----
* Create a tooltip: "Click on feature...."
* Better representation of marker icons (img instead of plain text)
* Line strokes
* Restore default button
* Visual highlight of the selected feature


Author
-----
<NAME>, 2014
{'fraction_non_alphanumeric': 0.1404993652137114, 'fraction_numerical': 0.01608125264494287, 'mean_word_length': 4.588652482269503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1804006', 'n_tokens_mistral': 748, 'n_tokens_neox': 696, 'n_words': 239}