Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with constructor #179

Open
ghost opened this issue Oct 12, 2020 · 1 comment
Open

Possible issue with constructor #179

ghost opened this issue Oct 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 12, 2020

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 " + "+alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 " + "+ellps=bessel +towgs84=589,76,480,0,0,0,0 +units=m " + "+no_defs", {origin: [-951499.37, -930499.37], resolutions: [131088, 65544, 32772, 16386, 8193, 4096.5, 2048.25, 1024.125, 512.0625, 256.03125, 128.015625, 64.0078125, 32.00390625, 16.001953125, 8.0009765625, 4.00048828125, 2.000244140625, 1.0001220703125, 0.50006103515625, 0.250030517578125, 0.1250152587890625, 0.06250762939453125]});

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
Copy link

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant