Instances of OpenLayers.Layer.MapServer are used to display data from a MapServer CGI instance.
OpenLayers. | Instances of OpenLayers.Layer.MapServer are used to display data from a MapServer CGI instance. |
Constants | |
DEFAULT_PARAMS | {Object} Hashtable of default parameter key/value pairs |
Constructor | |
OpenLayers. | Create a new MapServer layer object |
Functions | |
clone | Create a clone of this layer |
getURL | Return a query string for this layer |
getFullRequestString | combine the layer’s url with its params and these newParams. |
Create a new MapServer layer object
name | {String} A name for the layer |
url | {String} Base url for the MapServer CGI (e.g. http://www2.dmsolutions.ca/cgi-bin/mapserv) |
params | {Object} An object with key/value pairs representing the GetMap query string parameters and parameter values. |
options | {Object} Hashtable of extra options to tag onto the layer |
clone: function ( obj )
Create a clone of this layer
{OpenLayers.Layer.MapServer} An exact clone of this layer
getURL: function ( bounds )
Return a query string for this layer
bounds | {OpenLayers.Bounds} A bounds representing the bbox for the request |
{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters.
getFullRequestString:function( newParams, altUrl )
combine the layer’s url with its params and these newParams.
newParams | {Object} New parameters that should be added to the request string. |
altUrl | {String} (optional) Replace the URL in the full request string with the provided URL. |
{String} A string with the layer’s url and parameters embedded in it.
Create a clone of this layer
clone: function ( obj )
Return a query string for this layer
getURL: function ( bounds )
combine the layer’s url with its params and these newParams.
getFullRequestString:function( newParams, altUrl )