Elevator map with WMS and custom projection

I implemented the map using the Flyer and tiles from the WMS service. They offer a list of forecasts where one of them can be used in the standard EPSG sheet: 4326.

However, the map looks a bit distorted, and I can revise one of the other forecasts. The map provider uses EPSG: 32624, but I cannot get this projection correctly.

This is the complete list: EPSG: 32624, EPSG: 32619, EPSG: 32621, EPSG: 32622, EPSG: 32623, EPSG: 32624, EPSG: 32625, EPSG: 32626, EPSG: 32627, EPSG: 4326, EPSG: 3413, EPSG: 3575

I have a fiddle here: http://jsfiddle.net/uyrv2j7f/2/

There are two cards, the top uses the desired projection, but does not work. Below, a working but distorted projection is used.

I am sure that I need to edit the crs configuration. But why? Where to find information?

I found the first part here: http://spatialreference.org/ref/epsg/wgs-84-utm-zone-24n/ - the rest that I applied to other examples with different projections.

var crs = new L.Proj.CRS('EPSG:32624', '+proj=utm +zone=24 +ellps=WGS84 +datum=WGS84 +units=m +no_defs', { resolutions: [ 2116.670900008467, 1058.3354500042335, 529.1677250021168, 264.5838625010584, 132.2919312505292, 66.1459656252646, 26.458386250105836, 13.229193125052918, 6.614596562526459, 2.6458386250105836, 1.3229193125052918, 0.6614596562526459, 0.33072982812632296, 0.21166709000084669 ], transformation: new L.Transformation(1, -500, -1, 7017000) }); 

Hope someone can help me.

Alternatively: The flyer works like a charm for me normally and is the preferred library for business. BUT someone has to sing to help meditate using another library, then I would be very interested .....

UPDATE: tinproject gave some pointers, I went looking, and this version is closer to the desired result: http://jsbin.com/rehoxu/5/edit?html,css,js,output

I still like the data on how to really define variables for custom forecasts, though ...

+8
leaflet proj4js map-projections proj4
source share

No one has answered this question yet.

See similar questions:

6
Setting up projection on Leafletjs

or similar:

6
Convert between different map projections in Java
6
PROJ.4 library and OSGB36
3
Building a shp file in a flyer, works in ggplot
3
postgis / proj 900913 to 4326 projection questions with y coordinate
one
What is wrong with this Proj4 conversion?
one
Openlayers + Mapnik + Tilecache configuration issues
one
Flyer won't work with Vue using browser
one
GeoJSON shape distorted on Leaflet.js WMS map spherical mercator
0
Convert Latitude / Longitude to UTM Zone Projection ~
0
KKJ3 conversion settings in Proj4js version 2.3.12

All Articles