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
)
Public Sub New (
urlTemplate As String,
Optional minAlignment As ContentAlignment = ContentAlignment.BottomLeft,
Optional placeholders As WmsPlaceholders = Nothing
)
public:
WmsMapService(
String^ urlTemplate,
ContentAlignment minAlignment = ContentAlignment::BottomLeft,
WmsPlaceholders^ placeholders = nullptr
)
new :
urlTemplate : string *
?minAlignment : ContentAlignment *
?placeholders : WmsPlaceholders
(* Defaults:
let _minAlignment = defaultArg minAlignment ContentAlignment.BottomLeft
let _placeholders = defaultArg placeholders null
*)
-> WmsMapService
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 Exception | Condition |
---|
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