loleaflet: set no clipping for L.SVGGroup

Change-Id: I1565e6643bdf97de692cfe3a0da36918dd21a05a
This commit is contained in:
Henry Castro 2018-11-28 12:31:43 -04:00 committed by Jan Holesovsky
parent 1fcf34ecf5
commit 7aa417d0df

View file

@ -5,10 +5,14 @@
L.SVGGroup = L.Layer.extend({
options: {
noClip: true
},
initialize: function (bounds, options) {
L.setOptions(this, options);
this._bounds = bounds;
this._rect = L.rectangle(bounds, options);
this._rect = L.rectangle(bounds, this.options);
},
addEmbeddedSVG: function (svgString) {
@ -97,7 +101,6 @@ L.SVGGroup = L.Layer.extend({
_update: function () {
this._rect.setBounds(this._bounds);
this._rect._reset();
if (this._svg) {
var point = this._map.latLngToLayerPoint(this._bounds.getNorthWest());
this._svg.setAttribute('x', point.x);