forked from geosolutions-it/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create defaults to centralise js config
- Loading branch information
srto
committed
Jun 8, 2019
1 parent
c84d95a
commit 5da64c0
Showing
9 changed files
with
91 additions
and
140 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
geonode_mapstore_client/templates/geonode-mapstore-client/_config.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script> | ||
const defaultConfig = { | ||
proxy: "{{ SITEURL }}{{ PROXY_URL }}", | ||
printingEnabled: true, | ||
localConfig: { | ||
mapLayout: {left: {sm: 300, md: 500, lg: 600}, right: {md: "41%"}, bottom: {sm: 0}}, | ||
geonode_url: "{{ SITEURL }}", | ||
genode_rest_api: "{{ SITEURL }}mapstore/rest/", | ||
printUrl: "{{ GEOSERVER_PUBLIC_LOCATION }}gs/pdf/info.json", | ||
translations: '', | ||
useAuthenticationRules: true, | ||
loadAfterTheme: true, | ||
authenticationRules: [{ | ||
"urlPattern": ".*geostore.*", | ||
"method": "bearer" | ||
}, { | ||
"urlPattern": ".*geoserver.*", | ||
"authkeyParamName": "access_token", | ||
"method": "authkey" | ||
}, { | ||
"urlPattern": ".*gs.*", | ||
"authkeyParamName": "access_token", | ||
"method": "authkey" | ||
}] | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters