git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.5-rc3@4433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
|
* for the full text of the license. */
|
|
|
|
|
|
/**
|
|
* @requires OpenLayers/Layer/WMS.js
|
|
*
|
|
* Class: OpenLayers.Layer.WMS.Untiled
|
|
* Deprecated, to be removed in 3.0 - instead use OpenLayers.Layer.WMS and
|
|
* pass the option 'singleTile' as true.
|
|
*
|
|
* Inherits from:
|
|
* - <OpenLayers.Layer.WMS>
|
|
*/
|
|
OpenLayers.Layer.WMS.Untiled = OpenLayers.Class(OpenLayers.Layer.WMS, {
|
|
|
|
/**
|
|
* APIProperty: singleTile
|
|
* {singleTile} Always true for untiled.
|
|
*/
|
|
singleTile: true,
|
|
|
|
/**
|
|
* Constructor: OpenLayers.Layer.WMS.Untiled
|
|
*
|
|
* Parameters:
|
|
* name - {String}
|
|
* url - {String}
|
|
* params - {Object}
|
|
* options - {Object}
|
|
*/
|
|
initialize: function(name, url, params, options) {
|
|
OpenLayers.Layer.WMS.prototype.initialize.apply(this, arguments);
|
|
|
|
var msg = "The OpenLayers.Layer.WMS.Untiled class is deprecated and " +
|
|
"will be removed in 3.0. Instead, you should use the " +
|
|
"normal OpenLayers.Layer.WMS class, passing it the option " +
|
|
"'singleTile' as true.";
|
|
OpenLayers.Console.warn(msg);
|
|
},
|
|
|
|
CLASS_NAME: "OpenLayers.Layer.WMS.Untiled"
|
|
});
|