<?xml version="1.0"?>
<mapbook version="2.0">
	<configuration>
		<param name="mapserver_url">/cgi-bin/mapserv.exe</param>
		<param name="mapfile_root">/ms4w/apps/geomoose2/maps</param>		
		<!-- Linux settings
		<param name="mapserver_url">/mapserver/cgi-bin/mapserv</param>
	      <param name="mapfile_root">/opt/geomoose/geomoose/moose2-trunk/maps/</param>
		-->
		<param name="projection">EPSG:26915</param>
		<param name="zoomto['Jump To:']"><![CDATA[
		{
			'Dakota County' : [521238.614537864,4924218.86673578,473921.947801381,4974430.36885032],
			'Parcel Data' : [497205.409367,4923984.423582,477595.805945,4941970.52988],
			'Full State of MN' : [189783.560000,4816309.330000,761653.524114,5472346.500000]
		}
		]]></param>
		<param name="max_extent">189783.560000,4816309.330000,761653.524114,5472346.500000</param>
		<param name="initial_extent">497205.409367,4923984.423582,477595.805945,4941970.52988</param>
		<param name="layer_controls.up.on">false</param>
		<param name="layer_controls.down.on">false</param>		
		<param name="layer_controls.legend.on">false</param>		
	</configuration>
	<!--
		The mapping services define the source of the mapping data.
	-->

	<map-source name="highlight" type="mapserver">
		<file></file>
		<layer name="all"/>
	</map-source>


	<map-source name="basemap" type="mapserver">
		<file>./demo/statedata/basemap.map</file>
		<layer name="county_borders"/>
		<layer name="county_labels"/>
		<layer name="city_poly"/>
		<layer name="city_labels"/>
		<layer name="USGSGagingStations"/>
	</map-source>

	<map-source name="states" type="mapserver">
		<file>./demo/statedata/statesUTM15N.map</file>
		<layer name="all"/>
	</map-source>

	<map-source name="feedlots" type="mapserver">
		  <file>./demo/countydata/feedlots.map</file>
		  <layer name="all"/>
	</map-source>
  
	<map-source name="metro" type="wms">
		<url>http://www.datafinder.org:80/wmsconnector/com.esri.wms.Esrimap/MN_MetroGIS_DataFinder_WMS_Water_Resources</url>
		<layer name="stream_net_l"/>
		<param name="TRANSPARENT" value="TRUE"/>
		<param name="FORMAT" value="image/png"/>
	</map-source>

	<map-source name="weather" type="wms">
		<url>http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi</url>
		<layer name="nexrad-n0r"/>
		<param name="TRANSPARENT" value="TRUE"/>
		<param name="FORMAT" value="image/png"/>
	</map-source>

	<map-source name="water" type="mapserver">
		<file>./demo/wfs/hydro_wfs.map</file>
		<layer name="all"/>
	</map-source>

	<map-source name="pipelines" type="mapserver">
		<file>./demo/countydata/pipelines.map</file>
		<layer name="all"/>
	</map-source>

	<map-source name="fire" type="wms" queryable="true">
		<url>/cgi-bin/mapserv.exe?</url>
		<param name="map" value="/ms4w/apps/geomoose2/maps_demo/demo/countydata/firestations.map"/>
		<layer name="firestations"/>
		<param name="TRANSPARENT" value="TRUE"/>
		<param name="FORMAT" value="image/png"/>
	</map-source>

	<map-source name="parcels" type="mapserver">
		<file>./demo/landrecords/parcels.map</file>
		<layer name="all"/>
	</map-source>


	<map-source name="lmic" type="wms" tiled="false">
		<url>http://geoint.lmic.state.mn.us/cgi-bin/wms</url>
			<layer name="fsa2008"/>
			<layer name="cir2008"/>
			<layer name="fsa"/>
			<layer name="metro"/>
			<layer name="doq"/>
	</map-source>

	<!-- WMS Layers call the server and get images -->
	<map-source name="lmic_wmsz" type="wms" tiled="true">
		<url>http://geoint.lmic.state.mn.us/cgi-bin/wmsz</url>
		<layer name="drg24"/>
		<param name="format" value="image/png"/>
	</map-source>
	
	<service name="print">
		<url>php/print.php</url>
		<input type="print_info" name="layers"/>
	</service>

	<service name="identify" title="Identify" display="false">
		<url>php/identify.php</url>
		<step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point">
			<input type="visiblelayers" name="layers"/>
		</step>
	</service>

	<service name="select" title="Select">
		<url>php/select.php</url>

		<!-- Send a selection shape + the visible layers list to the service -->
		<step type="spatial" name="shape" line="false" polygon="true" point="false" default="polygon">
			<input type="visiblelayers" name="layers"/>
		</step>

		<step type="input">
			<header><![CDATA[
			Use this utility to select features and recieve information about it.<br/>
			<ul>
				<li>This is Duck...</li>
				<li>Abusing the new header/footnote combinations</li>
			</ul>
			]]></header>

			<input type="user" name="shape_buffer" title="Buffer Selection Shape:">0</input>
			<input type="user" name="selection_buffer" title="Buffer Selected Features:">0</input>

			<!-- 
				Option values should be the mapbook path to the layer.
				This only supports 'mapserver'-type layers.
			-->
			<input type="select" name="select_layer" title="Select Features From:">
				<option value="parcels/all">Parcels</option>
				<option value="pipelines/all">Pipelines</option>
			</input>

			<input type="select" name="query_layer" title="Using Features In:">
				<option value="parcels/all">Parcels</option>
				<option value="parcels/all">Pipelines</option>
			</input>

			<footnote><![CDATA[
				Specific footnotes about these options.
			]]></footnote>
		</step>
	</service>

	<service name="popups" display="false">
		<url>php/popups.php</url>
		<step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point">
			<header><![CDATA[
			Click on the map to show a popup about the features.
			]]></header>
			<input type="hidden" name="layer"/>
		</step>
	</service>



	<service name="search_parcels">
		<url>php/itemquery.php</url>
		<step type="input">
			<input type="select" name="qitem" title="Search By:">
				<option value="OWNER_NAME">Owner</option>
				<option value="PID">Parcel ID</option>
			</input>
			<input type="user" name="qstring" title=""/>
			<input type="hidden" name="layer" value="parcels/all"/>
			<input type="hidden" name="zoom_to_first" value="false"/>
			<input type="hidden" name="highlight" value="true"/>
		</step>
	</service>

	<!-- 
		The catalog defines how the layers will be displayed in the catalog tab.
	-->
	<layer-controls>
		<layer-control name="popups" service-name="popups" layer-input="layer" on="false" tip="Show Popups for %LAYER%"/> 
	</layer-controls>
	<catalog>


		<group title="County Layers" expand="true">
			<layer title="Feedlots" src="feedlots/all" legend="true"/>
			<layer title="Pipelines" src="pipelines/all" legend="true"/>
			<layer title="Fire Stations" src="fire/firestations" legend="true"/>
			<layer title="Parcels" src="parcels/all" status="on" popups="true" legend="true"/>			
			<layer title="Minneapolis Area Water" src="metro/stream_net_l"/>
			<layer title="Minneapolis Area Watersheds" src="water/all"/>			
		</group>
		
		<group title="Basemap Layers" expand="true">
			<layer title="Nexrad Radar" src="weather/nexrad-n0r" tip="Weather Radar"/>
			<layer title="USGS Gaging Stations" src="basemap/USGSGagingStation" status="on" legend="true"/>
			<layer title="MN Cities &amp; Labels" src="basemap/city_poly:basemap/city_labels" status="on" tip="This layer is visible at 1:1,000,000 scale." maxscale="1000000" minscale="500" legend="true"/>
			<layer title="MN County &amp; Labels" src="basemap/county_borders:basemap/county_labels" status="on" legend="true"/>
			<layer title="State Boundaries" src="states/all" status="on" legend="true"/>
		</group>

		<group title="Backgrounds" expand="true" multiple="false">
			<layer title="MN USGS Quads" src="lmic_wmsz/drg24"/>
			<layer title="Minneapolis Aerials" src="lmic/metro" status="off"/>			
			<layer title="MN 2008 Aerials" src="lmic/fsa2008" status="on"/>
			<layer title="MN 2008 CIR Aerials" src="lmic/cir2008" status="off"/>			
			<layer title="MN 2003 Aerials" src="lmic/fsa" status="off"/>
			<layer title="MN USGS DOQ" src="lmic/doq" status="off"/>			
		</group>
	</catalog>

	<!--
		The toolbar defines which services are referneces in the toolbar
	-->
	<toolbar>
		<tool name="previous" title="Previous Extent" type="internal" action="previous" selectable="false"/>
		<tool name="next" title="Next Extent" type="internal" action="next" selectable="false"/>
		<tool name="fullextent" title="Zoom to Full Extent" type="internal" action="fullextent" selectable="false"/>
		<tool name="pan" title="Pan" type="internal" action="pan"/>
		<tool name="zoomin" title="Zoom In" type="internal" action="zoomin" selected="true"/>
		<tool name="zoomout" title="Zoom Out" type="internal" action="zoomout"/>
		<tool name="identify" title="Identify" type="service" service="identify"/>
		<tool name="select" title="Select" type="service" service="select"/>
		<tool name="measure" title="Measure" type="internal" action="measure"/>
		<tool name="measurearea" title="Measure Area" type="internal" action="measurearea"/>
		<tool name="search_parcels" title="Search Parcels" type="service" service="search_parcels" selectable="false"/>
		<tool name="print" title="Print" type="service" service="print" selectable="false"/>
	</toolbar>
</mapbook>
