Components are additional ways that the user can interact with the Weave client and also provide a way for the client to display information to the user.
The generally provide a more complex interaction with Weave that a simple action does.
They're setup in the client config section of the config file.
Available Components
name | id | altername id |
---|---|---|
Loading | com.cohga.html.client.components.loadingComponent | |
Status | com.cohga.html.client.components.statusMessageComponent | |
Scale Selector | com.cohga.html.client.components.scaleSelector | |
com.cohga.html.client.components.entitySelectorComponent | weave.entitySelector | |
Scale Bar | com.cohga.html.client.components.scalebar | |
Image Slider | com.cohga.html.client.components.imageTransSlider | |
Single Image Slider1 | com.cohga.html.client.components.singleImageTransSlider com.cohga.html.client.components.singleImageChooser | weave.singleImageTransSlider |
Index Combo | weave.indexcombo |
- Weave 2.6.7 or later
Examples
<item component="com.cohga.html.client.components.scalebar"> <!-- For simple scale text only (text mode) --> <simple>true</simple> <!-- Location of scale text in text mode --> <height>10</height> <!-- For display of scale text & scale bar --> <showText>true</showText> <!-- Controls the appearance of the scale bar, maximum is 2 --> <lines>1</lines> <!-- Default units --> <units>m</units> <!-- Enable menu to change units by right mouse click over scale bar --> <showMenu>true</showMenu> </item>
<!-- The following is included in the Weave client file --> <view id="com.cohga.html.client.map.mapView"> <label>Map</label> <location>center</location> ... ... <statusbar> ... <item>ToC Layers</item> <item component="weave.singleImageTransSlider"> <width>150</width> <value>1</value> <sliderId>slider1</sliderId> </item> <item component="weave.singleImageChooser"> <sliderId>slider1</sliderId> <layer id="0" text="Google Maps Satellite" mapengine="google.satellite" isDefault="true"/> <layer id="0" text="Google Maps Standard" mapengine="google.standard"/> <layer id="0" text="OSM" mapengine="osm"/> </item> </statusbar> ... </view> <!-- With matching layers in the ToC model --> <entry id='l_mapengine.basemap_google_standard' layer='0' label='Google Standard' mapengine='google.standard' visible='false' checked='false'/> <entry id='l_mapengine.basemap_google_satellite' layer='0' label='Google Satellite' mapengine='google.satellite' visible='false' checked='false' /> <entry id='l_mapengine.basemap_osm' layer='0' label='OpenStreetMap' mapengine='osm' visible='false' checked='false'/>