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