Creates and initializes a new layer which integrates the images provided by Web Map Services into the map control.
Namespace:
Ptv.XServer.Controls.Map.Layers
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public WmsLayer(
string urlTemplate,
bool isTiled,
bool isBaseMap,
string name,
string copyRight = null,
int timeout = 8000
)
Public Sub New (
urlTemplate As String,
isTiled As Boolean,
isBaseMap As Boolean,
name As String,
Optional copyRight As String = Nothing,
Optional timeout As Integer = 8000
)
public:
WmsLayer(
String^ urlTemplate,
bool isTiled,
bool isBaseMap,
String^ name,
String^ copyRight = nullptr,
int timeout = 8000
)
new :
urlTemplate : string *
isTiled : bool *
isBaseMap : bool *
name : string *
?copyRight : string *
?timeout : int
(* Defaults:
let _copyRight = defaultArg copyRight null
let _timeout = defaultArg timeout 8000
*)
-> WmsLayer
Parameters
- urlTemplate
- Type: SystemString
URL needed for retrieving images from the corresponding Web Map Service. The layout of this URL must
achieve the requirements according the OpenGIS Specification, details can be found in http://www.opengeospatial.org/standards/wms .
Because the visible region of a map control changes during a user session, and the size in pixel may vary, some parameters in the URL
query string have to be parameterized. I.e. the parameters 'BBOX', 'WIDTH' and 'HEIGHT' must be used in a parameterized way: They have to
look like: ..&BBOX=${boundingbox}&WIDTH=${width}&HEIGHT=${height}.."
- isTiled
- Type: SystemBoolean
Indicating if a tiled variant is used for filling the map control with content, or not. - isBaseMap
- Type: SystemBoolean
Indicating if the content represents a background information which completely fills the drawing area of the map control
(= true), or only punctual information is shown (= false). This value influences the sequence order when the different layers are drawn. - name
- Type: SystemString
Name of the layer in the internal layer management. - copyRight (Optional)
- Type: SystemString
Copyright text visible in the lower right corner of the map control. - timeout (Optional)
- Type: SystemInt32
Longest time waiting for WMS request.
See Also