new GoMapLoader(Config, enviroment)
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 envThe 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 enviromentstring 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 layerstring 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 urlstring 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 layerOptsmodule:types~layerOptions The layer options
mapFilterstring 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 enviromentstring Entorno del servidor.
userTokenstring 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 initany JSON CONFIG from all maps and layers
enviromentstring Enviroment from server we have Geoserver or enviorment of site
geoserverstring 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 filterstring The filter to replace.
Returns:
Type Description string Return the filter with the date keyword replaced.
