[Tilecache] Moving from OpenLayers to Leaflet errors with: "Current y value … is too far from tile corner …"

P Kishor punk.kish at gmail.com
Sun Aug 24 08:10:12 PDT 2014


I moved from OpenLayers to Leaflet (no other change in any of the other
moving parts) other than replacing

var mylayer = new OpenLayers.Layer.WMS(
    "My Layer",
    "http://server/tilecache/tilecache.cgi",
    {layers: "mylayer", transparent: true},
    {isBaseLayer: false, opacity: 0.6, visibility: true}
);

with

var mylayer = L.tileLayer.wms("http://server/tilecache/tilecache.cgi", {
    layers: 'mylayer',
    format: 'image/png',
    transparent: true,
    attribution: 'Data from blah blah'
});

But now I get the error

An error occurred: Current y value -5009377.085697 is too far from tile
corner y -10018754.170400

Adding a `srs: "EPSG:4326"` kv pair to the Leaflet layer definition doesn't
do anything as well.

More details are also at
http://gis.stackexchange.com/questions/111550/moving-from-openlayers-to-leaflet-breaks-tilecache


Suggestions?

-- 
Puneet Kishor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/tilecache/attachments/20140824/9a482158/attachment.html>


More information about the Tilecache mailing list