#1498 Easily turning off/overriding default select and temporary intent styles #1501 GeoRSS format tests fail in Safari #1502 Events register method fails if listeners member is not an array #1503 panning off for odd-sized viewport #1504 doc review git-svn-id: http://svn.openlayers.org/branches/openlayers/2.6@6835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
71 lines
2.1 KiB
JavaScript
71 lines
2.1 KiB
JavaScript
/* Copyright 2006-2008 MetaCarta, Inc., published under the Clear BSD license.
|
|
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the full text
|
|
* of the license. */
|
|
|
|
|
|
/**
|
|
* @requires OpenLayers/Layer/MapServer.js
|
|
*/
|
|
|
|
/**
|
|
* Class: OpenLayers.Layer.MapServer.Untiled
|
|
* *Deprecated*. To be removed in 3.0. Instead use OpenLayers.Layer.MapServer
|
|
* and pass the option 'singleTile' as true.
|
|
*
|
|
* Inherits from:
|
|
* - <OpenLayers.Layer.MapServer>
|
|
*/
|
|
OpenLayers.Layer.MapServer.Untiled = OpenLayers.Class(OpenLayers.Layer.MapServer, {
|
|
|
|
/**
|
|
* APIProperty: singleTile
|
|
* {singleTile} Always true for untiled.
|
|
*/
|
|
singleTile: true,
|
|
|
|
/**
|
|
* Constructor: OpenLayers.Layer.MapServer.Untiled
|
|
*
|
|
* Parameters:
|
|
* name - {String}
|
|
* url - {String}
|
|
* params - {Object}
|
|
* options - {Object}
|
|
*/
|
|
initialize: function(name, url, params, options) {
|
|
OpenLayers.Layer.MapServer.prototype.initialize.apply(this, arguments);
|
|
|
|
var msg = "The OpenLayers.Layer.MapServer.Untiled class is deprecated and " +
|
|
"will be removed in 3.0. Instead, you should use the " +
|
|
"normal OpenLayers.Layer.MapServer class, passing it the option " +
|
|
"'singleTile' as true.";
|
|
OpenLayers.Console.warn(msg);
|
|
},
|
|
|
|
/**
|
|
* Method: clone
|
|
* Create a clone of this layer
|
|
*
|
|
* Returns:
|
|
* {<OpenLayers.Layer.MapServer.Untiled>} An exact clone of this layer
|
|
*/
|
|
clone: function (obj) {
|
|
|
|
if (obj == null) {
|
|
obj = new OpenLayers.Layer.MapServer.Untiled(this.name,
|
|
this.url,
|
|
this.params,
|
|
this.options);
|
|
}
|
|
|
|
//get all additions from superclasses
|
|
obj = OpenLayers.Layer.MapServer.prototype.clone.apply(this, [obj]);
|
|
|
|
// copy/set any non-init, non-simple values here
|
|
|
|
return obj;
|
|
},
|
|
|
|
CLASS_NAME: "OpenLayers.Layer.MapServer.Untiled"
|
|
});
|