Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleSingle image slider
<!-- 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<<!-- Set value from 0 to 100 percent -->
			<value>0</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'/>

...