Class: IWMapType

IWMapType

A class representing an map type.

new IWMapType(map)

Default constructor.
Parameters:
Name Type Description
map IWMap

Members


<static> STYLE_HERE_DELUXE :number

Disables map control.
Type:
  • number

Methods


addLabelsServerConfig(serverConfig)

Adds a server configuration for the label layer.
Parameters:
Name Type Description
serverConfig IWServerConfig
Returns:
Type
void

addTilesServerConfig(serverConfig)

Adds a server configuration for the background tiles.
Parameters:
Name Type Description
serverConfig IWServerConfig
Returns:
Type
void

getCopyright()

Returns the copyright of the map type. Every map type must have its own copyright string which will be displayed on the map.
Returns:
Type
String

getId()

Returns the id of the map type (name and style)
Returns:
Type
String

getLabelsServerConfig()

Returns the server configuration for the label layer.
Returns:
the server configuration for the label layer.
Type
IWServerConfig

getLogging()

Returns the logging string of the map type.
Returns:
Type
String

getMaxLevel()

Returns the maximal zoom level on which this map type will be displayed.
Returns:
Type
number

getMinLevel()

Returns the minimal zoom level on which this map type will be displayed.
Returns:
Type
number

getName()

Returns the name of the map type.
Returns:
Type
String

getPreferredLevel()

Returns the default zoom level. This zoom level will be used if no other zoom level has been defined.
Returns:
Type
number

getProjection()

Returns the projection class for this map type.
Returns:
Type
IWProjection

getRequestParameters()

Returns:
Type
String

getTilesizeMeter()

Returns:
Type
Array.<number>

getTilesServerConfig()

Returns the server configuration for the background tiles.
Returns:
Type
IWServerConfig

getType()

Returns the type of the map type, e.g. IW or VE.
Returns:
Type
String

hasLabels()

Returns true if a server configurations for labels is defined, otherwise it returns false.
Returns:
Type
boolean

isAvailable()

Returns true when the map type is available at the displayed map region.
Returns:
Type
boolean

isValtus()

Returns true when valtus maps are available for provided mapType.
Returns:
Type
boolean

setCopyright(newCopyright)

Sets the copyright of the map type. Every map type must have its own copyright string which will be displayed on the map.
Parameters:
Name Type Description
newCopyright String the copyright text for this map type.
Deprecated:
  • Yes
Returns:
Type
void

setLabelsServerConfig(serverConfig)

Sets the server configuration for the label layer.
Parameters:
Name Type Description
serverConfig IWServerConfig
Returns:
Type
void

setMaxLevel(newMaxLevel)

Sets the maximal zoom level on which this map type will be displayed.
Parameters:
Name Type Description
newMaxLevel number the maximal zoom level.
Returns:
Type
void

setMinLevel(newMinLevel)

Sets the minimal zoom level on which this map type will be displayed.
Parameters:
Name Type Description
newMinLevel number the minimal zoom level.
Returns:
Type
void

setName(newName)

Sets the name of the map type.
Parameters:
Name Type Description
newName String the name of the map type.
Returns:
Type
void

setPreferredLevel(newPreferredLevel)

Sets the default zoom level. This zoom level will be used if no other zoom level has been defined.
Parameters:
Name Type Description
newPreferredLevel number the preferred zoom level.
Returns:
Type
void

setProjection(newProjection)

Sets the projection class for this map type.
Parameters:
Name Type Description
newProjection IWProjection the projection type of this map type
Returns:
Type
void

setRequestParameters(newRequestParameters)

Sets additional request parameters for this map type.
Parameters:
Name Type Description
newRequestParameters String additional request parameters for this map type.
Returns:
Type
void

setTilesizeMeter(newTilesizeMeter)

Parameters:
Name Type Description
newTilesizeMeter Array.<number>
Returns:
Type
void

setTilesServerConfig(serverConfig)

Sets the server configuration for the background tiles.
Parameters:
Name Type Description
serverConfig IWServerConfig
Returns:
Type
void

setType(newType)

Sets the type of the map type, e.g. IW or VE.
Parameters:
Name Type Description
newType String
Returns:
Type
void

toString()

Returns a string representation of this map type.
Returns:
Type
String