OpenLayers JavaScript Mapping Library |
OpenLayers. Layer.WMSInstances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services. Create a new WMS layer with the OpenLayers.Layer.WMS constructor. Inherits fromSummary
reprojectDeprecated. See http://trac.openlayers.org/wiki/SpatialMercator for information on the replacement for this functionality. {Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer. Default is true. Set this in the layer options. Should be set to false in most cases. OpenLayers. Layer.WMSCreate a new WMS layer object Examplevar wms = new OpenLayers.Layer.WMS("NASA Global Mosaic", Parameters
clone
Create a clone of this layer Returns{OpenLayers.Layer.WMS} An exact clone of this layer getURL
Return a GetMap query string for this layer Parameters
Returns{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters. addTile
addTile creates a tile, initializes it, and adds it to the layer div. Parameters
Returns{OpenLayers.Tile.Image} The added OpenLayers.Tile.Image getFullRequestString
Combine the layer’s url with its params and these newParams. Add the SRS parameter from projection -- this is probably more eloquently done via a setProjection() method, but this works for now and always. Parameters
Returns{String} |
Destroy this layer
destroy: function()
Create a clone of this layer
clone: function ( obj )
Return a GetMap query string for this layer
getURL: function ( bounds )
addTile creates a tile, initializes it, and adds it to the layer div.
addTile:function( bounds, position )
Catch changeParams and uppercase the new params to be merged in before calling changeParams on the super class.
mergeNewParams:function( newParams )
Combine the layer’s url with its params and these newParams.
getFullRequestString:function( newParams )