1 /* Copyright 2006-2008 MetaCarta, Inc., published under the Clear BSD license.
2 * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full text
7 * @requires OpenLayers/Layer/MapServer.js
8 * @requires OpenLayers/Console.js
12 * Class: OpenLayers.Layer.MapServer.Untiled
13 * *Deprecated*. To be removed in 3.0. Instead use OpenLayers.Layer.MapServer
14 * and pass the option 'singleTile' as true.
17 * - <OpenLayers.Layer.MapServer>
19 OpenLayers.Layer.MapServer.Untiled = OpenLayers.Class(OpenLayers.Layer.MapServer, {
22 * APIProperty: singleTile
23 * {singleTile} Always true for untiled.
28 * Constructor: OpenLayers.Layer.MapServer.Untiled
36 initialize: function(name, url, params, options) {
37 OpenLayers.Layer.MapServer.prototype.initialize.apply(this, arguments);
39 var msg = "The OpenLayers.Layer.MapServer.Untiled class is deprecated and " +
40 "will be removed in 3.0. Instead, you should use the " +
41 "normal OpenLayers.Layer.MapServer class, passing it the option " +
42 "'singleTile' as true.";
43 OpenLayers.Console.warn(msg);
48 * Create a clone of this layer
51 * {<OpenLayers.Layer.MapServer.Untiled>} An exact clone of this layer
53 clone: function (obj) {
56 obj = new OpenLayers.Layer.MapServer.Untiled(this.name,
62 //get all additions from superclasses
63 obj = OpenLayers.Layer.MapServer.prototype.clone.apply(this, [obj]);
65 // copy/set any non-init, non-simple values here
70 CLASS_NAME: "OpenLayers.Layer.MapServer.Untiled"