Class: GoMapLoader

GoMapLoader

new GoMapLoader(Config, enviroment)

Map/GoMapLoader.ts, line 35

This is a class to generate maps dinamicaly

Name Type Description
Config config

JSON CONFIG from all maps and layers

enviroment string

Enviroment from server we have Geoserver or enviorment of site

Methods

staticGoMapLoader.AddRegionEnv(env)

Map/GoMapLoader.ts, line 352

This functions is used for store the region enviroment.

Name Type Description
env

The enviroment to add to the store.

Returns:
The dispatch function is being returned.

staticGoMapLoader.checkEnviroment(enviroment){string}

Map/GoMapLoader.ts, line 391

This function allow to check the enviroment.

Name Type Description
enviroment string

Enviroment from server we have Geoserver or enviorment of site

Returns:
Type Description
string Return the enviroment

staticGoMapLoader.checkUrlLayer(layer){string}

Map/GoMapLoader.ts, line 407

This function allow to check the URL of the layer.

Name Type Description
layer string

The layer URL.

Returns:
Type Description
string Return the URL of the layer.

staticGoMapLoader.containsHttp(url){boolean}

Map/GoMapLoader.ts, line 423

This function allow to check if the URL contains http.

Name Type Description
url string

The url to check.

Returns:
Type Description
boolean Return true if the url contains http.

staticGoMapLoader.extendFilter(layerOpts, mapFilter){types.layerOptions}

Map/GoMapLoader.ts, line 365

This function allow to extend the filter of layer.

Name Type Description
layerOpts module:types~layerOptions

The layer options

mapFilter string

The filter of the map

Returns:
Type Description
types.layerOptions Return the layer options

async,staticGoMapLoader.getGeoServerAuthData(enviroment, userToken){Promise.<any>}

Map/GoMapLoader.ts, line 81

Gets the GeoServer authentication data for the user.

Name Type Description
enviroment string

Entorno del servidor.

userToken string

Token proporcionado por el usuario.

Returns:
Type Description
Promise.<any> Objeto con la configuración de geoserver.

async,staticGoMapLoader.loadGoMap(init, enviroment, geoserver){module:types~GoMap}

Map/GoMapLoader.ts, line 37

This function allow to load the map.

Name Type Description
init any

JSON CONFIG from all maps and layers

enviroment string

Enviroment from server we have Geoserver or enviorment of site

geoserver string

The region enviroment where the map is loaded.

Returns:
Type Description
module:types~GoMap Return the map

staticGoMapLoader.replaceDateKeyword(filter){string}

Map/GoMapLoader.ts, line 436

This function allow to replace the date keyword.

Name Type Description
filter string

The filter to replace.

Returns:
Type Description
string Return the filter with the date keyword replaced.