Namespace: defaults

alk.defaults

This namespace holds various functions for dealing with the configuration of the ALK Maps library.

Methods

alk.defaults.getMapTileUrl(){*}

alk.defaults.getNewMapTileUrl(){*}

alk.defaults.getNewPCMServiceUrl(){*}

alk.defaults.getNewStaticServiceUrl(){*}

alk.defaults.getPCMServiceUrl(){*}

alk.defaults.getStaticServiceUrl(){*}

alk.defaults.setApiKey(key)

This method sets the ALK API Key as the default for all ALK PCM and Content Services.

Name Type Description
key string

alk.defaults.setDevelopmentDefaults(opt_options)

This method sets the defaults for all accessing all development ALK PCM and Content Services.

Option Type Description
imageHostURL string

The URL the images are at. Must be of "/Content/Images/icon".

https boolean

If HTTP is preferred for the web service calls, set this to false. Otherwise, HTTPS will be used.

alk.defaults.setHermeticDefaults(hostURL, imageHostURL)

This method sets the defaults for all accessing all ALK PCM and Content Services on a configured hermetic server installation.

Name Type Description
hostURL string

The URL starting with 'http://'. Example "http://pri-person.alk.com:94" Note, avoid using "http://localhost:94" as you will only be able to access servers on your machine. Nobody else can run them from their machine.

imageHostURL string

The URL for the images.

alk.defaults.setProductionDefaults(opt_options)

This method sets the defaults for all accessing all production ALK PCM and Content Services.

Option Type Description
imageHostURL string

The URL the images are at. Must be of "/Content/Images/icon".

https boolean

If HTTP is preferred for the web service calls, set this to false. Otherwise, HTTPS will be used.

alk.defaults.setQADefaults(opt_options)

This method sets the defaults for all accessing all quality assurance ALK PCM and Content Services.

Option Type Description
imageHostURL string

The URL the images are at. Must be of "/Content/Images/icon".

https boolean

If HTTP is preferred for the web service calls, set this to false. Otherwise, HTTPS will be used.