Click or drag to resize

IDBConfigWriterAddUpdateWMTSLayer Method

Add a new WMTS layer to the site, 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)
Syntax
bool AddUpdateWMTSLayer(
	string mapConfiguration,
	int layerId,
	string name,
	string copyright,
	string[] url,
	string layerName,
	string matrixSet,
	int buffer,
	string requestEncoding,
	bool visible,
	int imageFormatId,
	string formatSuffix,
	int transitionEffectId,
	bool imageCheckBox,
	bool includeInLayerTree,
	int projectionId,
	bool isBaseLayer,
	string style,
	WMTSSettings settings,
	bool useProxy,
	string proxyUrl,
	string proxyUserName,
	string proxyPassword,
	string apiKey,
	string apiKeyParam
)

Parameters

mapConfiguration
Type: SystemString
Map Configuration Name
layerId
Type: SystemInt32
Layer ID, -1 for new layer
name
Type: SystemString
Layer Name
copyright
Type: SystemString
Copyright Text
url
Type: SystemString
WMTS Url
layerName
Type: SystemString
Layer from WMTS to use
matrixSet
Type: SystemString
Matrix Set name
buffer
Type: SystemInt32
Buffer
requestEncoding
Type: SystemString
Request Encoding
visible
Type: SystemBoolean
Visible?
imageFormatId
Type: SystemInt32
Iamge Format ID
formatSuffix
Type: SystemString
Format Suffix
transitionEffectId
Type: SystemInt32
Transition Effect ID
imageCheckBox
Type: SystemBoolean
Show Image Checkbox?
includeInLayerTree
Type: SystemBoolean
Include in Layer Tree?
projectionId
Type: SystemInt32
Projection ID
isBaseLayer
Type: SystemBoolean
Is Base Layer?
style
Type: SystemString
Style
settings
Type: Cadcorp.ConfigurationWMTSSettings
Settings
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)
apiKey
Type: SystemString
Api Key
apiKeyParam
Type: SystemString
Api Key Param

Return Value

Type: Boolean
Boolean to indicate success
See Also