Skip to content

Commit

Permalink
Merge pull request #75 from moosehawk/master
Browse files Browse the repository at this point in the history
Fix for removal of last record when filter is set
  • Loading branch information
sfairgrieve committed Nov 9, 2015
2 parents 0faf6c8 + a761279 commit bf420dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions dist/leaflet-dvf.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ L.LinearFunction = L.Class.extend({
this._maxPoint = maxPoint;
this._xRange = maxPoint.x - minPoint.x;
this._yRange = maxPoint.y - minPoint.y;

this._calculateParameters(minPoint, maxPoint);

return this;
Expand Down Expand Up @@ -5397,10 +5397,10 @@ L.DataLayer = L.LayerGroup.extend({
record = this.options.deriveProperties ? this.options.deriveProperties(record) : record;

var includeLayer = this._shouldLoadRecord(record);

location = this._getLocation(record, recordIndex);

if (includeLayer) {
location = this._getLocation(record, recordIndex);

this.locationToLayer(location, record);
}
else if (this._layerIndex) {
Expand Down
Loading

0 comments on commit bf420dd

Please sign in to comment.