Skip to content

Commit

Permalink
v1.0.2: fix removeLayer with MCG parent
Browse files Browse the repository at this point in the history
was calling  with layer's id only, whereas MCG does not handle the id but requires the layer object. See also issue #11 and PR #12.
  • Loading branch information
ghybs committed Mar 26, 2017
1 parent 177ab70 commit 00bb0d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ It should virtually be compatible with any LayerGroup plugin, not only MarkerClu
### Installing the sub-plugin

#### Local copy
1. Download the "<a href="https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup/releases/download/v1.0.1/leaflet.featuregroup.subgroup.js">`leaflet.featuregroup.subgroup.js`</a>" file from the [`v1.0.1` release](https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup/releases/tag/v1.0.1).
1. Download the "<a href="https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup/releases/download/v1.0.2/leaflet.featuregroup.subgroup.js">`leaflet.featuregroup.subgroup.js`</a>" file from the [`v1.0.2` release](https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup/releases/tag/v1.0.2).
2. Place the file alongside your page.
3. Add the `script` tag (see [Quick Guide > HTML](#quick-guide)) to your page after Leaflet script.

Expand All @@ -78,7 +78,7 @@ You can alternatively use the free [unpkg](https://unpkg.com) CDN service, but k

```html
<!-- After Leaflet script -->
<script src="https://unpkg.com/[email protected].1/dist/leaflet.featuregroup.subgroup.js"></script>
<script src="https://unpkg.com/[email protected].2/dist/leaflet.featuregroup.subgroup.js"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "leaflet.featuregroup.subgroup",
"_name": "Leaflet.FeatureGroup.SubGroup",
"version": "1.0.1",
"version": "1.0.2",
"_year": "2015-2017",
"description": "Creates a Leaflet Feature Group that adds its child layers into a parent group when added to a map",
"main": "dist/leaflet.featuregroup.subgroup",
Expand Down

0 comments on commit 00bb0d4

Please sign in to comment.