Hi,

I try to use downloaded TMS tiles offline without a Server.
My tiles are saved local on my Windows machine (no tileserver!):
C:\inetpub\wwwroot\test\tiles\1.0.0\test1
C:\inetpub\wwwroot is the root dir of my local webserver.

If I use folowing configuration the client shows the tiles fine (because the 
tiles come via http):

var test_xyz = new OpenLayers.Layer.TMS( "test_xyz",
        "http://localhost/test/tiles/";,
        { 
        layername: 'test1',
        type: "jpg",
        isBaseLayer:true,
        transitionEffect:'resize',
        
resolutions:[529.16666666670005270134,396.87500000000000000000,264.58333333330000414207],
        units: projUnits,
        projection: mapProj,
        sphericalMercator: false
        }
);

if I change the URL to the file it doesn't work.

var test_xyz = new OpenLayers.Layer.TMS( "test_xyz",
        "file:///C:/inetpub/wwwroot/test/tiles/",
        { 
        layername: 'test1',
        type: "jpg",
        isBaseLayer:true,
        transitionEffect:'resize',
        
resolutions:[529.16666666670005270134,396.87500000000000000000,264.58333333330000414207],
        units: projUnits,
        projection: mapProj,
        sphericalMercator: false
        }
);

In Firebug I see that there comes no request.
If I try to use a OpenLayers.Layer.XYZ Object I have the same problem.
Later I want to use the tiles on an android device.

Any idea? 
Thanks
Jo
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to