openlayers/openlayers — Issue #111: Incorrect examples of TMS usage
Author: DaveCausey
Created: 2011-12-16 16:10:26+00:00
State: open

If I'm not mistaken, both usage examples for TMS (http://dev.openlayers.org/docs/files/OpenLayers/Layer/TMS-js.html ) are missing the new keyword:

var layer = OpenLayers.Layer.TMS(
"My Layer", // name for display in LayerSwitcher
"http://tilecache.osgeo.org/wms-c/Basic.py/", // service endpoint
{layername: "basic", type: "png"} // required properties
);