Skip to content

Commit

Permalink
v1.0.4: fix addLayers, removeLayers, chunkedLoading
Browse files Browse the repository at this point in the history
fix #8 where checked in Layer Groups add their child layers individually whereas we could use ,  for better performance and to use the  option of MCG.
  • Loading branch information
ghybs committed May 13, 2017
1 parent c296155 commit 8ea1cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ with any plugin that adds to / removes markers from map (e.g. [LeafletSlider](ht
### Installing the sub-plugin

#### Local copy
1. Download the "<a href="https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport/releases/download/v1.0.3/leaflet.markercluster.layersupport.js">`leaflet.markercluster.layersupport.js`</a>" file from the [`v1.0.3` release](https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport/releases/tag/v1.0.3).
1. Download the "<a href="https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport/releases/download/v1.0.4/leaflet.markercluster.layersupport.js">`leaflet.markercluster.layersupport.js`</a>" file from the [`v1.0.4` release](https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport/releases/tag/v1.0.4).
2. Place the file alongside your page.
3. Add the `script` tag (see [Quick Guide > HTML](#quick-guide)) to your page after Leaflet and Leaflet.markercluster scripts.

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

```html
<!-- After Leaflet and Leaflet.markercluster scripts -->
<script src="https://unpkg.com/leaflet.markercluster.layersupport@1.0.3/dist/leaflet.markercluster.layersupport.js"></script>
<script src="https://unpkg.com/leaflet.markercluster.layersupport@1.0.4/dist/leaflet.markercluster.layersupport.js"></script>
```

#### npm
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "leaflet.markercluster.layersupport",
"_name": "Leaflet.MarkerCluster.LayerSupport",
"version": "1.0.3",
"version": "1.0.4",
"_year": "2015-2017",
"description": "Sub-plugin for Leaflet.markercluster plugin (MCG in short); brings compatibility with L.Control.Layers and other Leaflet plugins.",
"main": "dist/leaflet.markercluster.layersupport",
"files": ["dist/*.js"],
"files": [
"dist/*.js"
],
"directories": {
"example": "examples"
},
Expand Down

0 comments on commit 8ea1cba

Please sign in to comment.