Closed noiv closed 11 years ago
If I understand correctly, you call L.Proj.CRS.prototype.initialize
explicitly? You are not supposed to do that. Please use:
var crs = new L.Proj.CRS(code, def, options)
Then you will not have this problem, since you will have to separate instances.
No, the lib calls that line here: https://github.com/kartena/Proj4Leaflet/blob/master/src/proj4leaflet.js#L127
And yes, different instances, but with same prototype, that's why they share the options.
Oops, yes, that's bad. Will look into it.
Should be fixed by 5bad55c5422cdece212f1e054505411418de805d, but please verify.
Works here.
Good. Thanks for the heads up.
While showing two maps with EPSG:3413, but different resolutions, the second call of above line overwrites the options of the first CRS. Using:
directly afterwards solved it, but I'm not sure whether side effects exists on untested conditions.