kartena / Proj4Leaflet

Smooth Proj4js integration with Leaflet.
http://kartena.github.io/Proj4Leaflet/
BSD 2-Clause "Simplified" License
590 stars 173 forks source link

Possible issue with constructor #179

Open ghost opened 4 years ago

ghost commented 4 years ago

Definition

It seems to me that the constructor do not use params proj4def and options.

Versions

"leaflet": "^1.6.0"
"proj4leaflet": "^1.0.2"
"react-leaflet": "^2.7.0",

Map

Leaflet map got default CRS system - EPSG3857

Projection

` krovak = new L.Proj.CRS( "EPSG:5514", "+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 "

Problem

L.Proj.CRS(code, proj4def, options)

Nothing happens if I change anything in proj4def or options. It seems only sensible to changes in "code". I use the projection to project layer from WMS server (EPSG5514 to EPSG3857)

Image - Problematic output

Screenshot from 2020-10-12 16-14-21

Question

I would appreciate any help or any tip what or where shall I look for the possible solution. Thank you.

sabit990928 commented 3 years ago

@pchochu hey! How is the progress with that one? Can you please share code to show how you implemented proj4leaflet together with react-leaflet. I'm a bit stucked on it)