Skip to content

Commit

Permalink
v1.0.0: compatibility with MCG >= 1.0.4
Browse files Browse the repository at this point in the history
Fixes:
- Compatibility with Leaflet.MarkerClusterGroup.LayerSupport sub-plugin.
- Dynamically added marker do not appear if outside initial view port.
Docs:
- Refactor demo pages to load selected Leaflet, MCG and MCG.Freezable versions, including locally built version.
- Move gh-pages branch into docs/ folder.
- Use build script for README.
  • Loading branch information
ghybs committed Oct 27, 2017
1 parent 793ce96 commit 9db80a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -117,7 +117,7 @@ far from the view port, accordingly with `removeOutsideVisibleBounds` option._
### Installing the sub-plugin

#### Local copy
1. Download the "<a href="https://github.com/ghybs/Leaflet.MarkerCluster.Freezable/releases/download/v0.1.1/leaflet.markercluster.freezable.js">`leaflet.markercluster.freezable.js`</a>" file from the [`v0.1.1` release](https://github.com/ghybs/Leaflet.MarkerCluster.Freezable/releases/tag/v0.1.1).
1. Download the "<a href="https://github.com/ghybs/Leaflet.MarkerCluster.Freezable/releases/download/v1.0.0/leaflet.markercluster.freezable.js">`leaflet.markercluster.freezable.js`</a>" file from the [`v1.0.0` release](https://github.com/ghybs/Leaflet.MarkerCluster.Freezable/releases/tag/v1.0.0).
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 @@ -126,7 +126,7 @@ You can alternatively use the free [unpkg](https://unpkg.com) CDN service, but k

```html
<!-- After Leaflet script -->
<script src="https://unpkg.com/leaflet.markercluster.freezable@0.1.1/dist/leaflet.markercluster.freezable.js"></script>
<script src="https://unpkg.com/leaflet.markercluster.freezable@1.0.0/dist/leaflet.markercluster.freezable.js"></script>
```

#### npm
Expand Down
6 changes: 4 additions & 2 deletions package.json
@@ -1,11 +1,13 @@
{
"name": "leaflet.markercluster.freezable",
"_name": "Leaflet.MarkerCluster.Freezable",
"version": "0.1.1",
"version": "1.0.0",
"_year": "2015-2016",
"description": "Sub-plugin for Leaflet.markercluster plugin; adds the ability to freeze clusters at a specified zoom.",
"main": "dist/leaflet.markercluster.freezable",
"files": ["dist/*.js"],
"files": [
"dist/*.js"
],
"directories": {
"example": "examples"
},
Expand Down

0 comments on commit 9db80a3

Please sign in to comment.