Client Samples

Below you'll find various samples for different client configurations.

Very simple map based client

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="urn:com.cohga.server.config#1.0" xmlns:client="urn:com.cohga.html.client#1.0">

	<client:config id="map">
		<debug>false</debug>
		<title>Basic Map Client</title>
		<description>A very basic client showing a map and legend</description>
		<perspective>
			<text>Main</text>
			<layout>
				<west>
					<name>legend</name>
					<type>fit</type>
					<width>200</width>
					<minSize>175</minSize>
					<maxSize>400</maxSize>
					<split>true</split>
				</west>
				<center>
					<type>fit</type>
				</center>
			</layout>

			<view id="com.cohga.client.panel.legend">
				<label/>
				<location>legend</location>
			</view>

			<view id="com.cohga.html.client.map.mapView">
				<label/>
				<location>center</location>
				<toolbar>
					<item action="weave.previousExtent"/>
					<item action="weave.nextExtent"/>
					<item action="weave.initialExtent"/>
					<item action="weave.fullExtent"/>
					<item action="weave.zoomIn" isDefault="true"/>
					<item action="weave.zoomOut"/>
					<item action="weave.pan"/>
					<item action="weave.refreshMap"/>
					<item>-></item>
					<item component="com.cohga.html.client.components.loadingComponent"/>
				</toolbar>

				<control id="weave.mapctrl.keyboard"/>
				<control id="com.cohga.client.mapctrl.mousePosition"/>
				<control id="com.cohga.client.mapctrl.navigation"/>

				<mapEngine id="mapengine.main">
					<options>
						<opacity>1.0</opacity>
						<isBaseLayer>true</isBaseLayer>
						<transitionEffect>resize</transitionEffect>
						<singleTile>true</singleTile>
						<selection>false</selection>
						<ratio>1.2</ratio>
					</options>
				</mapEngine>
				<crs>EPSG:20255</crs>
				<extents>
					<initial minx="327098" miny="5811358" maxx="351971" maxy="5827675"/>
					<full minx="327098" miny="5811358" maxx="351971" maxy="5827675"/>
					<limit minx="320000" miny="5810000" maxx="360000" maxy="5840000"/>
				</extents>
			</view>
		</perspective>
	</client:config>

</config>