kartena / Proj4Leaflet

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

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

Open vincenzobologna opened 3 years ago

vincenzobologna commented 3 years ago

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:

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.