* Clone on WMS/MS Untiled, 4760:4761 (Closes #1013) * serviceVersion on TMS, 4720:4721 (Closes #1023) * W3CGeo in Format.GeoRSS, 4768:4769, 4778:4779 (Closes #1024) * GeoJSON Draft4 Update, 4769:4770 (Closes #1028) * pagePosition Regression 4782:4783, (Closes #1034) * example changes 4691:4692 (Closes #1040) * WFS missing registerTileListener 4759:4760 (Closes #1045) * Yahoo API to stop dragging 4792:4793 (Closes #1052) git-svn-id: http://svn.openlayers.org/branches/openlayers/2.5@4794 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
69 lines
2.0 KiB
JavaScript
69 lines
2.0 KiB
JavaScript
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
|
* See http://svn.openlayers.org/trunk/openlayers/repository-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);
|
|
},
|
|
|
|
/**
|
|
* Method: clone
|
|
* Create a clone of this layer
|
|
*
|
|
* Returns:
|
|
* {<OpenLayers.Layer.WMS.Untiled>} An exact clone of this layer
|
|
*/
|
|
clone: function (obj) {
|
|
|
|
if (obj == null) {
|
|
obj = new OpenLayers.Layer.WMS.Untiled(this.name,
|
|
this.url,
|
|
this.params,
|
|
this.options);
|
|
}
|
|
|
|
//get all additions from superclasses
|
|
obj = OpenLayers.Layer.WMS.prototype.clone.apply(this, [obj]);
|
|
|
|
// copy/set any non-init, non-simple values here
|
|
|
|
return obj;
|
|
},
|
|
|
|
CLASS_NAME: "OpenLayers.Layer.WMS.Untiled"
|
|
});
|