Click or drag to resize

WmsMapService Constructor

Creates and initializes an instance of WmsMapService.

Namespace:  Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public WmsMapService(
	string urlTemplate,
	ContentAlignment minAlignment = ContentAlignment.BottomLeft,
	WmsPlaceholders placeholders = null
)

Parameters

urlTemplate
Type: SystemString
The URL template is expected to include an SRS/CRS parameter. It defines placeholders for bounding box, image width and height.
minAlignment (Optional)
Type: System.DrawingContentAlignment
Position of (MinX|MinY) in resulting images. Defaults to ContentAlignment.BottomLeft. Refer to MinAlignment for details.
placeholders (Optional)
Type: Ptv.XServer.Controls.Map.Tools.ReprojectionWmsPlaceholders
Defines the placeholder names. May be null to use the internal defaults.
Exceptions
ExceptionCondition
ArgumentException Fails with an ArgumentException if the url template misses mandatory elements or if the specified alignment is set to an unsupported value (such as ContentAlignment.MiddleCenter).
See Also