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

Raster georeferenced with Monte Mario / Italy zone 2 (EPSG:3004) #181

Open
vincenzobologna opened this issue Aug 26, 2021 · 0 comments
Open

Comments

@vincenzobologna
Copy link

vincenzobologna commented Aug 26, 2021

Hello,

first of all, this is a great plugin in order tu enhance a lot Leaflet with custom CRS!
Mabye isn't a real code issue but simply conf issue. In my project i need to put an ImageOverlay raster georeferenced in Monte Mario / Italy zone 2 (EPSG:3004) and some "latlng" markers, too.
I tried to configure a custom CRS with your plugin with those params, but unsuccessful:

const monteMarioCRS = new Proj.CRS( 'EPSG:3004', '+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=2520000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs', { resolutions: [8192, 4096, 2048, 1024, 512, 256, 128], origin: [2322737.56,4705874.80], bounds: [[1782205.39,4223533.54],[2791665.11,5222517.32]] } )

and use this const to setup crs option of my leaflet map. But the result is:

  • have a black map,
  • i can see the imageOverlay with my raster,
  • console output error TypeError: coordinates must be finite numbers

In addition: which map tiles provider i have to use to see the map?

In order to complete my description i'm using VueJS (2.6.11), with vue2-leaflet, leaflet, proj4leaflet and proj4 packages at the last version.

Thanks in advance for support.

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