Skip to content

Commit 0f53274

Browse files
committed
Updated readme with changelog, upped some deps
1 parent b5a3d0b commit 0f53274

File tree

6 files changed

+33
-12
lines changed

6 files changed

+33
-12
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,32 @@ Getter for the actual fps (based on the actual time between the last two animati
520520

521521
## Changelog
522522

523+
### Version 3.x
524+
525+
#### Dropping Support for Leaflet 0.7.x
526+
We added some functionality that made it hard to backward support Leaflet 0.7.x.
527+
You can continue to use our 2.x release for Leaflet 0.7.x support, but it's unlikely that branch will see any further development/releases.
528+
This is the primary reason for increasing the major version as this is the only change that is not backwards compatible.
529+
530+
#### Hexbins/Pings now Zoom with Map Before Redrawing
531+
We switched the HebinLayer to extend the built-in Leaflet SVG layer.
532+
This provides a bunch of advantages, including that the SVG layer is zoom-transformed with the other layers on the map.
533+
This allowed us to leave the hexbins on the map until the zoom animation is complete, at which point the hexbin grid is recalculated and redrawn.
534+
535+
#### Automatic Filtering of Off-Map Hexbins
536+
We updated the Hexbin layer code to automatically filter out points that fall outside of the visible bounds of the map.
537+
This _dramatically_ improves performance at high zoom levels where we used to draw A LOT of paths off the map for no reason.
538+
539+
#### Built-in Support for Tooltips and Other Hover Events
540+
While you could always manually manage a tooltip or some kind of hexbin hover event, we've added some code to make it easier.
541+
Now, you can pretty easily enable some built-in tooltip/highlight behavior or implement your own.
542+
See the API docs on HoverHandlers and the advanced hexbin example for details.
543+
544+
545+
523546
### Version 2.x
524547

525-
### Lots of API changes
548+
#### Lots of API changes
526549
Read through the API changes.
527550
A lot of things were moved from config options to being configurable via chained function call.
528551

dist/leaflet-d3.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet-d3.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet-d3.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"artifactName": "leaflet-d3",
44
"moduleName": "leafletD3",
55
"description": "Custom d3 layers for leaflet",
6-
"version": "2.1.0",
6+
"version": "3.0.0",
77
"author": "Asymmetrik, Ltd.",
88
"copyright": "Copyright (c) 2007-2017 Asymmetrik Ltd, a Maryland Corporation",
99
"license": "MIT",
@@ -28,21 +28,21 @@
2828
},
2929

3030
"devDependencies": {
31-
"d3": "4.6",
32-
"@types/d3": "4.5",
31+
"d3": "4.9",
32+
"@types/d3": "4.9",
3333

3434
"d3-hexbin": "0.2",
3535

36-
"leaflet": "1.0",
36+
"leaflet": "1.1",
3737
"@types/leaflet": "1.0",
3838

39-
"rollup": "0.41",
39+
"rollup": "0.43",
4040

4141
"gulp": "3.9",
4242
"gulp-eslint": "3.0",
4343
"gulp-load-plugins": "1.5",
4444
"gulp-rename": "1.2",
45-
"gulp-sourcemaps": "2.4",
45+
"gulp-sourcemaps": "2.6",
4646
"gulp-uglify": "2.0",
4747
"run-sequence": "1.2"
4848
}

src/js/ping/PingLayer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ L.PingLayer = L.SVG.extend({
6161
// Set up events
6262
map.on({'move': this._updateContainer}, this);
6363

64-
//this._updateContainer();
6564
},
6665

6766
// Called when the plugin layer is removed from the map

0 commit comments

Comments
 (0)