New answers tagged proj4
2
Proj4js reprojects features in place, you just iterate through all the features of the layer and apply the transform method:
function reproject(layer, inputProjection, outputProjection) {
var source = new Proj4js.Proj(inputProjection);
var dest = new Proj4js.Proj(outputProjection);
Proj4js.reportError = function (msg) {
throw new ...
1
A good point made by Rene W.
Here is the answer:
add +no_defs to your first example in order to avoid unwanted default values
about this part: +a=6367470 +b=6367470 +ellps=sphere +datum=WGS84
+datum=WGS84 is a shorthand for: +ellps=WGS84 +towgs84=0,0,0.
You already have +ellps=sphere. Your reference surface cannot be a shpere
and ...
0
Conclusion:
I got email from Pier Liedman who wrote the Leaflet Proj4 plugin. It is not possible to have two CRS in one Leaflet project. The only way to do this would be the following hack,
If you really want to do this, I guess you could do it by placing
multiple map divs on top of each other, syncing their location by
hooking up the "moveend" ...
Top 50 recent answers are included