Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration of the initial Base Map for Godiva3 #91

Open
LorenzoCorgnati opened this issue Apr 1, 2022 · 2 comments
Open

Configuration of the initial Base Map for Godiva3 #91

LorenzoCorgnati opened this issue Apr 1, 2022 · 2 comments

Comments

@LorenzoCorgnati
Copy link

Is it possible to configure the background map of Godiva3 viewer in some configuration files (i.e. without using the button in the browser page)? I'd like to have Demis WMS as the default map, but NAtural Earth is the one that is always displayed.

@guygriffiths
Copy link
Collaborator

You can add custom layers and define one of them to be the default, but I don't think you can define one of the pre-existing ones to be the default. If you edit ~/.ncWMS2/godiva.properties you can add a layer named <whatever> by setting the properties:

<whatever>URL=http://wmsurl.com/with/query/separator/wms?
# The Title for the layer switcher. Defaults to the ID (i.e. "user" in this case)
<whatever>Title=My WMS Layer
# The layer(s) to plot.  MANDATORY
<whatever>Layers=wmslayer1,wmslayer2
# The projection to use.  Defaults to "CRS:84"
<whatever>Projection=EPSG:4326
# The WMS version to use.  Defaults to "1.1.1"
<whatever>Version=1.3.0
# The image format to use.  Defaults to "image/png"
<whatever>Format=image/png
# Whether a layer should be switched on at load.  Can be defined for multiple overlays, but only for one base layer
<whatever>OnByDefault=true
# Whether to use as an overlay (as opposed to a base map).  Defaults to false
<whatever>IsOverlay=false

@LorenzoCorgnati
Copy link
Author

LorenzoCorgnati commented Apr 2, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants