| OpenLayers. | |
| Constants | |
| URL_HASH_FACTOR | {Float} Used to hash URL param strings for multi-WMS server selection. |
| Properties | |
| url | {Array(String) or String} This is either an array of url strings or a single url string. |
| params | {Object} Hashtable of key/value parameters |
| reproject | Deprecated. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| destroy | |
| clone | |
| setUrl | |
| mergeNewParams | |
| redraw | Redraws the layer. |
| selectUrl | selectUrl() implements the standard floating-point multiplicative hash function described by Knuth, and hashes the contents of the given param string into a float between 0 and 1. |
| getFullRequestString | Combine url with layer’s params and these newParams. |
Deprecated. See http://docs.openlayers.org
clone: function ( obj )
| obj | {Object} |
{OpenLayers.Layer.HTTPRequest} An exact clone of this OpenLayers.Layer.HTTPRequest
selectUrl: function( paramString, urls )
selectUrl() implements the standard floating-point multiplicative hash function described by Knuth, and hashes the contents of the given param string into a float between 0 and 1. This float is then scaled to the size of the provided urls array, and used to select a URL.
| paramString | {String} |
| urls | {Array(String)} |
{String} An entry from the urls array, deterministically selected based on the paramString.
getFullRequestString:function( newParams, altUrl )
Combine url with layer’s params and these newParams.
does checking on the serverPath variable, allowing for cases when it is supplied with trailing ? or &, as well as cases where not.
”server?key1=value1&key2=value2&key3=value3”
WARNING: The altUrl parameter is deprecated and will be removed in 3.0.
| newParams | {Object} |
| altUrl | {String} Use this as the url instead of the layer’s url |
{String}
destroy: function()
clone: function ( obj )
setUrl: function( newUrl )
mergeNewParams:function( newParams )
Redraws the layer.
redraw: function( force )
selectUrl() implements the standard floating-point multiplicative hash function described by Knuth, and hashes the contents of the given param string into a float between 0 and 1.
selectUrl: function( paramString, urls )
Combine url with layer’s params and these newParams.
getFullRequestString:function( newParams, altUrl )