Closed kolxo closed 12 years ago
Hey, I am having the same problem. (using Kartena's proj4leaflet lib) I have tried different parameters with transformation ..
Have you figured out how to add EPSG 2154 to LeafLet ?
Hi,
No I'm sorry, Currently I'm not able to add EPSG 2154 with proj4Leaflet. I use directly proj4j before displaying data. It's tedious and I don't know why it doesn't worK.
2012/7/4 gallab < reply@reply.github.com
Hey, I am having the same problem. (using Kartena's proj4leaflet lib) I have tried different parameters with transformation ..
Have you figured out how to add EPSG 2154 to LeafLet ?
Reply to this email directly or view it on GitHub: https://github.com/kartena/Proj4Leaflet/issues/8#issuecomment-6760597
Hi,
Same problem for me. I managed to set my map in 2154 projection, and display some WMS layers. But no success with Tile Layers. I've tried a lots of transformation matrix, and one time i managed to display the tiles on a specific zoom. But the matrix was only correct for that zoom level...
Do you know if is really related to 2154 or to any local projection ?
It works well with Leaflet 0.3.1, check out the following code : http://blog.mathieu-leplatre.info/leaflet-tiles-in-lambert-93-projection-2154.html
However the map is blank with Leaflet 0.4.2... tilepoints look out of bounds (unprojected?)
Took me a while to figure out that Leaflet 0.4 now expects a scale()
method in CRS classes.
Could fix easily setting scale
attribute to the resulting crs object.
Yep there was a breaking change between Leaflet 0.3 and 0.4. You now need to set the scale function on the crs object instead of on the map object like @leplatrem says. Closing, but feel free to comment if this didn't solve the issue.
Hi,
I have troubles using the following code
I just add a Canvas layer such as :
canvasTiles.drawTile = function(canvas, tilePoint, zoom) { var ctx = canvas.getContext('2d'); ctx.rect(0,0, 256,256); ctx.stroke(); ctx.fillText('(' + tilePoint.x + ', ' + tilePoint.y + ')',5,10);
Such layer draw a grid with tile coord on vanilla Leaflet. But with the map on EPSG:2154, nothing happen. I try to play with transformation parameters without success.
Is there something wrong with my map declaration ?
Thanks in advance for your support