Skip to content

Commit

Permalink
Merge pull request #37 from jhoglin/master
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
glenrobertson committed Oct 11, 2016
2 parents 36004f2 + 68b6030 commit 24a1ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TileLayer.GeoJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ L.TileLayer.GeoJSON = L.TileLayer.Ajax.extend({

// Add the clip-path attribute to reference the id of the tile clipPath
this._recurseLayerUntilPath(function (pathLayer) {
pathLayer._container.setAttribute('clip-path', 'url(#' + clipPathId + ')');
pathLayer._container.setAttribute('clip-path', 'url(' + window.location.href + '#' + clipPathId + ')');
}, layer);
},

Expand Down

0 comments on commit 24a1ad2

Please sign in to comment.