My first thought here is that you seem to be making things overly complicated. My code for OSM is simply

    var layer = new OpenLayers.Layer.OSM("Open Street Map",[
"Content/outputs/OSM/tiles/${z}/${x}/${y}.png", // I have them built locally
        "Content/outputs/OSM/tiles/${z}/${x}/${y}.png",
        "Content/outputs/OSM/tiles/${z}/${x}/${y}.png"
        ], {
            'isBaseLayer': true
        });

Let OL do the work. I think you are getting in the way.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to