⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainconfig.jsp

📁 Java的框架
💻 JSP
字号:
<%@ page language="java" contentType="text/xml" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<MapbuilderConfig version="0.2.1" id="referenceTemplate" xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder <c:out value="${param.mapLib}" />/schemas/config.xsd">
	<!--
    Description: This configuration file determines what components from the
                 Mapbuilder library are to be included in a Main Mapbuilder web
                 page.
    Licence:     LGPL as per: hhttp://www.gnu.org/copyleft/lesser.html

    $Id: mainConfig.jsp,v 1.1 2006/06/28 10:38:31 CAPD\jov Exp $
  -->
	<!--
    All static images should be relative to this URL.
    This dir is relative the dir of the main html file.
  -->
	<models>
<!-- 
		<Logger id="eventLogDoc">
      <serializeUrl>../../writeXml</serializeUrl>
      <widgets>
        <Widget id="eventLog">
          <stylesheet><c:out value="${param.mapLib}" />/widget/EventLog.xsl</stylesheet>
        </Widget>
      </widgets>
    </Logger>
-->
		<Context id="mainMap">
			<defaultModelUrl><c:url value="${param.mainContextFile}" /></defaultModelUrl>
			<widgets>
				<MapPane id="mainMapWidget">
					<htmlTagId>mainMapPane</htmlTagId>
					<mapContainerId>mainMapContainer</mapContainerId>
				</MapPane>
				<MapScaleBar id="scalebar">
        	<!-- all of these properties are optional --> 
        	<!-- displaySystem>english</displaySystem --> 
        	<displaySystem>metric</displaySystem> 
          <minWidth>100</minWidth>
          <maxWidth>300</maxWidth>
        	<divisions>4</divisions>
          <subdivisions>2</subdivisions>
        	<showMinorMeasures>false</showMinorMeasures>
          <abbreviateLabel>true</abbreviateLabel>
          <singleLine>false</singleLine>
          <align>left</align>  <!-- left, center, or right -->
        </MapScaleBar>
				<Loading id="loading"/>
				<Loading2 id="loading2">
					<mapContainerId>mainMapContainer</mapContainerId>
				</Loading2>
				<AoiBoxWZ id="aoiBoxMain">
					<htmlTagId>mainMapPane</htmlTagId>
					<stylesheet><c:out value="${param.mapLib}" />/widget/GmlRenderer.xsl</stylesheet>
					<mapContainerId>mainMapContainer</mapContainerId>
					<lineColor>#FF0000</lineColor>
					<lineWidth>2</lineWidth>
					<crossSize>15</crossSize>
				</AoiBoxWZ>
				<CursorTrack id="cursorTrack">
					<mouseHandler>mainMap</mouseHandler>
					<showDMS>true</showDMS>
					<showLatLong>false</showLatLong>
				</CursorTrack>
				<Legend id="legend"/>
				<ModelUrlInput id="urlInput">
					<defaultUrl><c:url value="${param.mainContextFile}" /></defaultUrl>
				</ModelUrlInput>
				<Widget id="mapTitle">
					<stylesheet><c:out value="${param.mapLib}" />/widget/MapTitle.xsl</stylesheet>
				</Widget>
				<!-- AoiForm id="aoiForm"/ -->
				<MapScaleText id="mapScaleText"/>
				<!--
				<Widget id="abstract">
					<stylesheet><c:out value="${param.mapLib}" />/widget/Abstract.xsl</stylesheet>
				</Widget>
				<SaveModel id="saveModelWidget">
					<htmlTagId>saveModel</htmlTagId>
				</SaveModel>
				<LayerControl id="layerControl">
          <moveUpImage>/images/LayerMoveUpDisable.png</moveUpImage>
          <moveDownImage>/images/LayerMoveDownDisable.png</moveDownImage>
          <deleteImage>/images/LayerRemoveDisable.png</deleteImage>
				</LayerControl>
        <SearchForm id="searchForm">
        </SearchForm>
        -->
			</widgets>
			<tools>
				<AoiMouseHandler id="mainAoi"/>
				<DragPanHandler id="mainDragPan">
					<enabled>false</enabled>
				</DragPanHandler>
				<MouseClickHandler id="mainMouseClick"/>
        <History id="extentHistory">
          <targetModel>mainMap</targetModel>
        </History>
			</tools>
		</Context>
    <Model id="featureInfoResponse" template="true">
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
      <widgets>
        <FeatureInfo id="features">
          <htmlTagId>featureInfo</htmlTagId>
        </FeatureInfo>
      </widgets>
    </Model>
	</models>
	<widgets>
    <Back id="back">
      <buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<class>Button</class>
			<disabledSrc>/images/UndoDisable.png</disabledSrc>
    </Back>
    <Forward id="forward">
      <buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<class>Button</class>
			<disabledSrc>/images/RedoDisable.png</disabledSrc>
    </Forward>
		<ZoomIn id="zoomIn">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<mouseHandler>mainAoi</mouseHandler>
			<class>RadioButton</class>
			<selected>true</selected>
			<enabledSrc>/images/ZoomInEnable.png</enabledSrc>
			<disabledSrc>/images/ZoomInDisable.png</disabledSrc>
		</ZoomIn>
		<ZoomOut id="zoomOut">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<mouseHandler>mainAoi</mouseHandler>
			<class>RadioButton</class>
			<enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
			<disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
		</ZoomOut>
		<DragPan id="dragPan">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<mouseHandler>mainDragPan</mouseHandler>
			<class>RadioButton</class>
			<enabledSrc>/images/PanEnable.png</enabledSrc>
			<disabledSrc>/images/PanDisable.png</disabledSrc>
		</DragPan>
		<SetAoi id="setAoi">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<mouseHandler>mainAoi</mouseHandler>
			<class>RadioButton</class>
			<enabledSrc>/images/SetAoiEnable.png</enabledSrc>
			<disabledSrc>/images/SetAoiDisable.png</disabledSrc>
		</SetAoi>
		<Reset id="reset">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<class>Button</class>
			<disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
		</Reset>
<!-- 
		<GetFeatureInfo id="getFeatureInfo">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>featureInfoResponse</targetModel>
			<mouseHandler>mainAoi</mouseHandler>
			<class>RadioButton</class>
			<enabledSrc>/images/QueryEnable.png</enabledSrc>
			<disabledSrc>/images/QueryDisable.png</disabledSrc>
			<context>mainMap</context>
		</GetFeatureInfo>
-->
		<Save id="save">
			<buttonBar>mainButtonBar</buttonBar>
			<targetModel>mainMap</targetModel>
			<class>Button</class>
			<disabledSrc>/images/SaveDisable.png</disabledSrc>
			<popupWindowName>modelXML</popupWindowName>
		</Save>
	</widgets>
	<!-- relative to the skinDir + language subdir -->
	<skinDir><c:out value="${param.mapLib}" />/skin/mcap</skinDir>
	<languages>en,fr,fr-CA</languages>
	<widgetTextUrl>widgetText.xml</widgetTextUrl> <!-- relative to the skinDir -->
  <!-- Url of LOCAL redirection script, required to access external URLs -->
  <!-- This should be pointed to the mapbuilder web app -->
<!--
  <proxyUrl>/mapbuilder1.0rc2/proxy</proxyUrl>
  <serializeUrl>/mapbuilder1.0rc2/writeXml</serializeUrl>
-->
	<!-- example of overriding the server config values -->
</MapbuilderConfig>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -