Leaflet.Path.Transform
Leaflet.Path.Transform copied to clipboard
_transformGeometries overrides matrix with null values
Whenever I rotate a shape, _transformGeometries executes this._path._transform(null); before this._transformPoints(this._path);, this yields exception Uncaught Error: Invalid LatLng object: (NaN, NaN) since the non existent matrix values recalculates the lat/lng values to NULL.
Please provide a code example or jsfiddle, I don't know how to reproduce it
The issue I encountered results from not setting up a max cap value for zoom level on the leaflet map. Inside of _getProjectedMatrix, the map.getMaxZoom() in line var zoom = map.getMaxZoom() || this.options.maxZoom; resolves to infinity on the latest version of Leaflet.js whenever maxZoom isn't defined, so the line itself will always be true. I suggest placing a case for Infinite values there as well.