diff --git a/TileLayer.GeoJSON.js b/TileLayer.GeoJSON.js index db997fc..1c8a076 100644 --- a/TileLayer.GeoJSON.js +++ b/TileLayer.GeoJSON.js @@ -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); },