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
11
* Class: OpenLayers.Layer.WMS.Untiled
12
* *Deprecated*. To be removed in 3.0. Instead use OpenLayers.Layer.WMS and
13
* pass the option 'singleTile' as true.
16
* - <OpenLayers.Layer.WMS>
18
OpenLayers.Layer.WMS.Untiled = OpenLayers.Class(OpenLayers.Layer.WMS, {
21
* APIProperty: singleTile
22
* {singleTile} Always true for untiled.
27
* Constructor: OpenLayers.Layer.WMS.Untiled
35
initialize: function(name, url, params, options) {
36
OpenLayers.Layer.WMS.prototype.initialize.apply(this, arguments);
38
var msg = "The OpenLayers.Layer.WMS.Untiled class is deprecated and " +
39
"will be removed in 3.0. Instead, you should use the " +
40
"normal OpenLayers.Layer.WMS class, passing it the option " +
41
"'singleTile' as true.";
42
OpenLayers.Console.warn(msg);
47
* Create a clone of this layer
50
* {<OpenLayers.Layer.WMS.Untiled>} An exact clone of this layer
52
clone: function (obj) {
55
obj = new OpenLayers.Layer.WMS.Untiled(this.name,
61
//get all additions from superclasses
62
obj = OpenLayers.Layer.WMS.prototype.clone.apply(this, [obj]);
64
// copy/set any non-init, non-simple values here
69
CLASS_NAME: "OpenLayers.Layer.WMS.Untiled"