Categories Initializer - geosolutions-it/MapStore GitHub Wiki
Needed Files
In order to use this plugin you need to include this files in the build.cfg:
gxp/src/script/plugins/client/lib/GeoStoreClient.js
gxp/src/script/plugins/client/lib/CategoriesInitializer.js
NOTE: In the default configuration this is already done.
Plugin description
This plugin initializes an array of categories in a GeoStore instance.
Configuration Example
You can configure it adding this plugin with this configuration:
{
"ptype": "gxp_categoryinitializer",
"geostoreUser": "admin",
"geostorePassword": "admin",
"neededCategories": ["TEMPLATE", "MAP", "MAPSTORECONFIG"],
"confirmCategoryCreation": true
}
The basic parameters are:
- geostoreUser: Administrator user name
- geostorePassword: Administrator user password
- neededCategories: Array of categories to be created if don't exists
- confirmCategoryCreation: Show a confirm dialog before the categories creation