| GeoViewer User Guide | ||
|---|---|---|
| Prev | Appendix A. GeoViewer Configuration | |
Locate the line starting with Context (create it if it doesn't exist) and change the part right of the equal sign. The format must be a file path starting with a leading slash (/). The context file must be located under the geoviewer web application's root directory.
Context=/contexts/worldWithLegend.xml
Locate the line starting with geowidget.gazetteer.gazetteers.url (create it if it doesn't exist) and change the part right of the equal sign. The format for the gazetteer server is: URL@FEATURE_TYPE, where URL is the absolute URL of the gazetteer server you want to query, and FEATURE_TYPE is the type recognized by the gazetteer as a searchable feature type.
geowidget.gazetteer.gazetteers.url=http://webservices.ionicsoft.com/gazetteer/wfs/GNS_GAZ@GNSE
Locate the line starting with AnnotationServer (create it if it doesn't exist) and change the part right of the equal sign. The format for the annotation server is: URL, where URL is the absolute URL of the annotation server. Another setting is AnnotationUser which is the user name under which will be created the annotations. You may want to change this to a unique value for your web application.
AnnotationServer=http://webservices.ionicsoft.com/annotation/wfs/ANNOTATION AnnotationUser=guest
In the file webforms/discoverLayer/conf/conf.properties, under the root of the GeoViewer web application, locate the line starting with catalog.url (create it if it doesn't exist) and change the part right of the equal sign. The format for the catalog server is: URL, where URL is the absolute URL of the catalog server.
catalog.url=http://www.askthespider.com/ionicwrs/wrs/WRS
By default most of the GeoViewer's windows close themselves automatically. If you want to change this behavior and leave the window open, you can instruct the GeoViewer to do so. Locate the line starting with the GeoWidget you want to modify: geowidget.setScale.autoClose for instance. Create the new line if it doesn't exist and change the part right of the equal sign. true means the window automatically close itself once its finished. false means the window will remain open until it is closed manually.
geowidget.setScale.autoClose=false
To change the background color of the map in the GeoViewer, locate the line starting with MapBackgroundColor= in the configuration file. Create the new line if it doesn't exist and change the part right of the equal sign to a RGB triplet in parentheses.
MapBackgroundColor=(171,207,243)
Other settings can also be configured using RedSpider Studio's GeoWizard web application. For instance, the GeoWizard will help you to:
change the banner of the GeoViewer
change the layout of the GeoViewer (toolbar position, etc.)
change the tooltip of the buttons, etc.