Skip to content

Commit

Permalink
1.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Jan 21, 2018
1 parent e6e7368 commit 88afd5d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Substitutes polygons and lines with markers when their screen size falls below a

![Example](https://cloud.githubusercontent.com/assets/159510/7164588/090c06fe-e399-11e4-956d-0283ef7e69cf.gif)

(**NOTE:** The following refence reflects pre-release version 1.0-alpha.1. If you're looking to use the latest stable release, please refer to the [maintenance/0.3 branch](https://github.com/oliverroick/Leaflet.Deflate/tree/maintenance/0.3).)
(**NOTE:** The following refence reflects pre-release version 1.0-alpha.2. If you're looking to use the latest stable release, please refer to the [maintenance/0.3 branch](https://github.com/oliverroick/Leaflet.Deflate/tree/maintenance/0.3).)

## Installation

Expand All @@ -17,15 +17,15 @@ Substitutes polygons and lines with markers when their screen size falls below a
Include the source into the `head` section of your document.

```html
<script src="https://unpkg.com/[email protected].1/dist/L.Deflate.js"></script>
<script src="https://unpkg.com/[email protected].2/dist/L.Deflate.js"></script>
```

### Install via NPM

If you use the [npm package manager](https://www.npmjs.com/), you can fetch a local copy by running:

```bash
npm install [email protected].1
npm install [email protected].2
```

You will find a copy of the release files in `node_modules/Leaflet.Deflate/dist`.
Expand Down
2 changes: 1 addition & 1 deletion dist/L.Deflate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var mochaPhantomJS = require('gulp-mocha-phantomjs');

gulp.task('dist', function() {
gulp.src('src/L.Deflate.js')
.pipe(uglify())
.pipe(uglify().on('error', function(e){console.log(e);}))
.pipe(gulp.dest('dist'))
});

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.Deflate",
"author": "Oliver Roick",
"version": "0.3.0",
"version": "1.0.0-alpha.2",
"description": "Deflates lines and polygons to a marker when their screen size becomes too small in lower zoom levels.",
"license": "Apache-2.0",
"repository": "git://github.com/oliverroick/Leaflet.Deflate",
Expand Down
6 changes: 3 additions & 3 deletions src/L.Deflate.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ L.Deflate = L.FeatureGroup.extend({
this._featureGroup.removeLayer(layer.marker);
this._featureGroup.removeLayer(layer);

const index = this._allLayers.indexOf(layer);
var index = this._allLayers.indexOf(layer);
if (index !== -1) { this._allLayers.splice(index, 1); }
}
},
Expand All @@ -146,8 +146,8 @@ L.Deflate = L.FeatureGroup.extend({
},

_deflate: function() {
const bounds = this._map.getBounds();
const endZoom = this._map.getZoom();
var bounds = this._map.getBounds();
var endZoom = this._map.getZoom();
var markersToAdd = [];
var markersToRemove = [];

Expand Down

0 comments on commit 88afd5d

Please sign in to comment.