Description
🐞 bug report
Affected Package
The issue is caused by package @angular/....Is this a regression?
Not sure
Description
Leaflet library contains the following code:
https://github.com/Leaflet/Leaflet/blob/984fedda1c48d141f018ca45ae06738872d7f5dd/src/layer/tile/GridLayer.js#L393-L394
Looks like it's a kind of hack that forces a browser to update a page layout and to start the animation (css transition).
https://stackoverflow.com/a/24195559/1989716
In dev build everything works as expected.
When using ng build --prod
mentioned above lines are removed from the bundle:
this._setZoomTransform(i,r.getCenter(),r.getZoom()),this._onCreateLevel(i))
so the animation is broken.
Leaflet author closed the issue:
Leaflet/Leaflet#7096
Since angular and leaflet are both very popular, it would be great to provide a compatibility.
🌍 Your Environment
Angular Version:
Angular CLI: 9.1.1
Node: 10.16.0
OS: win32 x64
Angular: 9.1.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.1
@angular-devkit/build-angular 0.901.1
@angular-devkit/build-optimizer 0.901.1
@angular-devkit/build-webpack 0.901.1
@angular-devkit/core 9.1.1
@angular-devkit/schematics 9.1.1
@angular/cli 9.1.1
@ngtools/webpack 9.1.1
@schematics/angular 9.1.1
@schematics/update 0.901.1
rxjs 6.5.4
typescript 3.7.5
webpack 4.42.0
Anything else relevant?