Skip to content

Commit

Permalink
[Fixes #991] Add CREATE_LAYER setting to geonode_config (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
marthamareal authored May 31, 2022
1 parent bd05105 commit 8c92366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions geonode_mapstore_client/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def resource_urls(request):
'MAP_BASELAYERS_SOURCES': getattr(settings, "MAPSTORE_BASELAYERS_SOURCES", {}),
'CATALOGUE_SERVICES': getattr(settings, "MAPSTORE_CATALOGUE_SERVICES", {}),
'CATALOGUE_SELECTED_SERVICE': getattr(settings, "MAPSTORE_CATALOGUE_SELECTED_SERVICE", None),
'CREATE_LAYER': getattr(settings, "CREATE_LAYER", False),
'DEFAULT_MAP_CENTER_X': getattr(settings, "DEFAULT_MAP_CENTER_X", 0),
'DEFAULT_MAP_CENTER_Y': getattr(settings, "DEFAULT_MAP_CENTER_Y", 0),
'DEFAULT_MAP_CRS': getattr(settings, "DEFAULT_MAP_CRS", 'EPSG:3857'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
const defaultLayerFormat = geoNodeSettings.DEFAULT_LAYER_FORMAT || 'image/png';
const catalogueServices = geoNodeSettings.CATALOGUE_SERVICES || {};
const catalogueSelectedService = geoNodeSettings.CATALOGUE_SELECTED_SERVICE || '';
const createLayer = geoNodeSettings.CREATE_LAYER || false
const timeEnabled = geoNodeSettings.TIME_ENABLED || false;
const allowedDocumentTypes = geoNodeSettings.ALLOWED_DOCUMENT_TYPES || [];
const languages = geoNodeSettings.LANGUAGES;
Expand Down Expand Up @@ -111,6 +112,7 @@
geoNodeSettings: {
catalogueSelectedService: catalogueSelectedService,
catalogueServices: catalogueServices,
createLayer: createLayer,
geonodeUrl: siteUrl,
geoserverUrl: geoServerPublicLocation,
siteName: siteName,
Expand Down

0 comments on commit 8c92366

Please sign in to comment.