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