From 9db80a3fba7dff4aee940e05d3d4dceaa1fffcf9 Mon Sep 17 00:00:00 2001 From: ghybs Date: Fri, 27 Oct 2017 15:21:54 +0400 Subject: [PATCH] v1.0.0: compatibility with MCG >= 1.0.4 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. --- README.md | 4 ++-- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 92799ea..b1180e9 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ far from the view port, accordingly with `removeOutsideVisibleBounds` option._ ### Installing the sub-plugin #### Local copy -1. Download the "`leaflet.markercluster.freezable.js`" file from the [`v0.1.1` release](https://github.com/ghybs/Leaflet.MarkerCluster.Freezable/releases/tag/v0.1.1). +1. Download the "`leaflet.markercluster.freezable.js`" 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. @@ -126,7 +126,7 @@ You can alternatively use the free [unpkg](https://unpkg.com) CDN service, but k ```html - + ``` #### npm diff --git a/package.json b/package.json index e1a31ac..c996108 100644 --- a/package.json +++ b/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" },