IDBConfigWriterAddUpdateWMSFromCapabilitiesLayer Method |
Add a WMS From Capabilities Layer, or update an existing layer.
Namespace:
Cadcorp.Configuration.Connectors
Assembly:
Cadcorp.Configuration (in Cadcorp.Configuration.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntaxint AddUpdateWMSFromCapabilitiesLayer(
string mapConfiguration,
int layerId,
string name,
string[] url,
bool individualDataLayers,
bool individualBaseLayers,
int baseLayerImageFormatID,
int dataLayerImageFormatID,
bool onlyAddLeafLayers,
bool dataLayersInitiallyVisible,
int transitionEffectID,
bool expandBaseLayerGroup,
bool expandDataLayerGroup,
bool singleTile,
string copyright,
int buffer,
string initialVisibleBaseLayer,
string sld,
bool showLegendButton,
bool imageCheckBox,
bool compositeDataLayer,
int projectionID,
string exceptions,
int tileWidth,
int tileHeight,
bool sortGroups,
bool useProxy,
string proxyUrl,
string proxyUserName,
string proxyPassword
)
Function AddUpdateWMSFromCapabilitiesLayer (
mapConfiguration As String,
layerId As Integer,
name As String,
url As String(),
individualDataLayers As Boolean,
individualBaseLayers As Boolean,
baseLayerImageFormatID As Integer,
dataLayerImageFormatID As Integer,
onlyAddLeafLayers As Boolean,
dataLayersInitiallyVisible As Boolean,
transitionEffectID As Integer,
expandBaseLayerGroup As Boolean,
expandDataLayerGroup As Boolean,
singleTile As Boolean,
copyright As String,
buffer As Integer,
initialVisibleBaseLayer As String,
sld As String,
showLegendButton As Boolean,
imageCheckBox As Boolean,
compositeDataLayer As Boolean,
projectionID As Integer,
exceptions As String,
tileWidth As Integer,
tileHeight As Integer,
sortGroups As Boolean,
useProxy As Boolean,
proxyUrl As String,
proxyUserName As String,
proxyPassword As String
) As Integer
Parameters
- mapConfiguration
- Type: SystemString
Map Configuration Name - layerId
- Type: SystemInt32
Layer ID, -1 for new layer - name
- Type: SystemString
Layer Name - url
- Type: SystemString
WMS URL - individualDataLayers
- Type: SystemBoolean
Show individual data layers - individualBaseLayers
- Type: SystemBoolean
Show individual base layers - baseLayerImageFormatID
- Type: SystemInt32
Base Layer Image Format ID - dataLayerImageFormatID
- Type: SystemInt32
Data Layer Image Format ID - onlyAddLeafLayers
- Type: SystemBoolean
Only add leaf layers? - dataLayersInitiallyVisible
- Type: SystemBoolean
Are the data layers initially visible? - transitionEffectID
- Type: SystemInt32
Transition Effect ID - expandBaseLayerGroup
- Type: SystemBoolean
Expand Base Layer Group - expandDataLayerGroup
- Type: SystemBoolean
Expand Data Layer Group - singleTile
- Type: SystemBoolean
Load map as single tile - copyright
- Type: SystemString
Copyright Text - buffer
- Type: SystemInt32
Buffer - initialVisibleBaseLayer
- Type: SystemString
Initial Visible Base Layer - sld
- Type: SystemString
SLD - showLegendButton
- Type: SystemBoolean
Show Legend Button? - imageCheckBox
- Type: SystemBoolean
Show Image Checkbox? - compositeDataLayer
- Type: SystemBoolean
Load as composite data layer? - projectionID
- Type: SystemInt32
Projection ID - exceptions
- Type: SystemString
Exceptions - tileWidth
- Type: SystemInt32
Tile Width - tileHeight
- Type: SystemInt32
Tile Height - sortGroups
- Type: SystemBoolean
Sort Groups? - useProxy
- Type: SystemBoolean
Use a proxy? - proxyUrl
- Type: SystemString
Proxy URL - proxyUserName
- Type: SystemString
Proxy User Name (if authenticated) - proxyPassword
- Type: SystemString
Proxy Password (if authenticated)
Return Value
Type:
Int32Number of Rows Affected.
See Also