<div dir="ltr">I moved from OpenLayers to Leaflet (no other change in any of the other moving parts) other than replacing <div><br></div><div><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);word-wrap:normal;color:rgb(51,51,51);line-height:18px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit">var mylayer = new OpenLayers.Layer.WMS(
"My Layer",
"<a href="http://server/tilecache/tilecache.cgi">http://server/tilecache/tilecache.cgi</a>",
{layers: "mylayer", transparent: true},
{isBaseLayer: false, opacity: 0.6, visibility: true}
);</code></pre><div>with</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);word-wrap:normal;color:rgb(51,51,51);line-height:18px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit">var mylayer = L.tileLayer.wms("<a href="http://server/tilecache/tilecache.cgi">http://server/tilecache/tilecache.cgi</a>", {
layers: 'mylayer',
format: 'image/png',
transparent: true,
attribution: 'Data from blah blah'
});</code></pre></div><div>But now I get the error </div><div><br></div><div><span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;font-size:14px;line-height:18px;white-space:pre-wrap;background-color:rgb(238,238,238)">An error occurred: Current y value -5009377.085697 is too far from tile corner y -10018754.170400</span><br>
</div><div><br></div><div>Adding a `srs: "EPSG:4326"` kv pair to the Leaflet layer definition doesn't do anything as well.</div><div><br></div><div>More details are also at <a href="http://gis.stackexchange.com/questions/111550/moving-from-openlayers-to-leaflet-breaks-tilecache">http://gis.stackexchange.com/questions/111550/moving-from-openlayers-to-leaflet-breaks-tilecache</a> </div>
<div><div><br></div><div>Suggestions?</div><div><br></div>-- <br><div dir="ltr">Puneet Kishor<br><br></div>
</div></div></div>