<div dir="ltr">Hi List,<div><br></div><div>I am trying to reproject a tiled map from <span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">EPSG:2326 to </span><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap">webmercator,</span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap">but the origin is always off. </span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap">I have tried to use bbox as suggested on github issue tracker, but no idea how to do that correctly</span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap">Any hints on how to do this?</span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000" face="monospace" size="3"><span style="white-space:pre-wrap">You can see a working leaflet sample on <a href="http://46.101.178.199/~root/map.html">http://46.101.178.199/~root/map.html</a></span></font></div><div><font color="#000000" face="monospace" size="3"><div style=""><span style="white-space:pre-wrap"><br></span></div><div style=""><span style="white-space:pre-wrap">>>>>>>> Proj4Leaflet >>>>>>>></span></div><div style=""><span style="white-space:pre-wrap">var crs = new L.Proj.CRS('EPSG:2326','+proj=tmerc +lat_0=22.31213333333334 +lon_0=114.1785555555556 +k=1 +x_0=836694.05 +y_0=819069.8 +ellps=intl +towgs84=-162.619,-276.959,-161.764,0.067753,-2.24365,-1.15883,-1.09425 +units=m +no_defs', {</span></div><div style=""><span style="white-space:pre-wrap">  origin: [-4786700, 8353100],</span></div><div style=""><span style="white-space:pre-wrap">  resolutions: [</span></div><div style=""><span style="white-space:pre-wrap">    42.33341800016934, 21.16670900008467, 10.583354500042335, 5.291677250021167,</span></div><div style=""><span style="white-space:pre-wrap">    2.6458386250105836, 1.3229193125052918, 0.6614596562526459, 0.33072982812632296, 0.16536491406316148     </span></div><div style=""><span style="white-space:pre-wrap">  ]</span></div><div style=""><span style="white-space:pre-wrap">});</span></div><div style=""><span style="white-space:pre-wrap"><<<<<<< Proj4Leaflet <<<<<<<<</span></div><div style="white-space:pre-wrap"><br></div><div style="white-space:pre-wrap"><br></div><div style="white-space:pre-wrap">>>>>>>> MapProxy >>>>>>>></div><div style=""><span style="white-space:pre-wrap">sources:
  </span><span style="white-space:pre-wrap">epsg2326</span><span style="white-space:pre-wrap">_tile:
    type: tile
    url: http://....../tile/%(z)s/%(x)s/%(y)s.png
    grid: </span><span style="white-space:pre-wrap">epsg2326</span></div><div style=""><span style="white-space:pre-wrap"><br></span></div><div style="white-space:pre-wrap">grids:</div><div style=""><span style="white-space:pre-wrap">    epsg2326:
        srs: EPSG:2326
        res: [ 42.33341800016934, 21.16670900008467, 10.583354500042335, 5.291677250021167, 2.6458386250105836, 1.3229193125052918, 0.6614596562526459, 0.33072982812632296, 0.16536491406316148 ]
        origin: nw
        bbox_srs: EPSG:4326
        bbox: [ 129.71179031844, -89.996752339456, -129.71179031844, 89.996752339456 ]<br style=""><<<<<<< MapProxy <<<<<<<<</span></div></font></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">Regards,</span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">Daniel</span></div></div>