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

📄 default.aspx

📁 arcims加点的测试程序
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>


<%@ Register Assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.2.3.1380, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"
    Namespace="ESRI.ArcGIS.ADF.Web.UI.WebControls" TagPrefix="esri" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="javascript/map.js"></SCRIPT>
    <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="javascript/Measure.js"></SCRIPT>
</head>
<body>
<script language="javascript">
/**
 * Map to Point
 */
function ZoomToPoints(x,y){
	/*
    var x = "116.9";
    var y = "39.3";
    */

    var message = 'zoomtopoint';
    message += ',' + x + ',' + y+ ',19';
    var context = MapDIVName;            
    <%=sCallBackFunctionInvocation%>
}     

/**
 * Map to Point for Scale
 */
function ZoomToScalePoint(x,y){
    /*
    var x = "116.9";
    var y = "39.3";
    */
    OptionServer("false");
    var message = 'zoomtoscalepoint';
    message += ',' + x + ',' + y+ ',11';
    var context = MapDIVName;            
    AfterJsFunction("zoomtoscalepoint");
    <%=sCallBackFunctionInvocation%>
}

/**
 * Map to Extent
 */
function ZoomToExtent(L,B,R,T){
    //forceComma(L)+"|"+forceComma(B)+"|"+forceComma(R)+"|"+forceComma(T);//记录四角坐标
    //minx="-6.643233743409496" miny="35.746924428822624" maxx="25.623901581722322" maxy="57.89103690685435"
    var minx="-6.643233743409496";
    var miny="35.746924428822624" ;
    var maxx="25.623901581722322"; 
    var maxy="57.89103690685435";

    var message = 'zoomtoextent';
    message += ',' + minx + ',' + miny + ',' + maxx + ',' +maxy;
    var context = MapDIVName;            
    <%=sCallBackFunctionInvocation%>
}
</script>

    <form id="form1" runat="server">

    <div style="position: absolute; width: 79px; height: 184px; z-index: 1; left:532px; top:120px" id="layer1">
 <div style="position: absolute; width: 19px; height: 48px; z-index: 1; left: 11px; top: 92px" id="Div1">
<font face="ESRI Caves 1" size="7">f</font>
 </div>

<div style="position: absolute; width: 25px; height: 43px; z-index: 2; left:35px; top:61px" id="layer2">
<font face="ESRI Caves 1" size="7">e</font> </div>


<div style="position: absolute; width: 20px; height: 48px; z-index: 1; left: 13px; top: 34px" id="layer3">
<font face="ESRI Caves 1" size="7">f</font>
 </div>

<div style="position: absolute; width: 26px; height: 52px; z-index: 2; left:33px; top:109px" id="layer5">
<font face="ESRI Caves 1" size="7">e</font> </div>

<div style="position: absolute; width: 25px; height: 43px; z-index: 2; left:33px; top:5px" id="layer6">
<font face="ESRI Caves 1" size="7">e</font> </div></div>

    <div style="visibility: hidden">
    <div id="LabelW" style="left: 429px; position: absolute; top: 190px; width: 50px;"></div>
    <div id="LabelS" style="left: 510px; position: absolute; top: 237px; width: 50px;"></div>
    <div id="LabelE" style="left: 587px; position: absolute; top: 187px; width: 50px;"></div>
    <div id="LabelN" style="left: 510px; position: absolute; top: 139px; width: 50px;"></div>
    <asp:Label ID="Label1" runat="server" Text="Label" Width="280px"></asp:Label>
    </div>
    <div>
        <esri:Toolbar ID="Toolbar1" runat="server" BuddyControlType="Map" CurrentTool="MapZoomIn" Group="Toolbar1_Group" Height="32px" ToolbarItemDefaultStyle-BackColor="White" ToolbarItemDefaultStyle-Font-Names="Arial" ToolbarItemDefaultStyle-Font-Size="Smaller" ToolbarItemDisabledStyle-BackColor="White" ToolbarItemDisabledStyle-Font-Names="Arial" ToolbarItemDisabledStyle-Font-Size="Smaller" ToolbarItemDisabledStyle-ForeColor="Gray" ToolbarItemHoverStyle-BackColor="White" ToolbarItemHoverStyle-Font-Bold="True" ToolbarItemHoverStyle-Font-Italic="True" ToolbarItemHoverStyle-Font-Names="Arial" ToolbarItemHoverStyle-Font-Size="Smaller" ToolbarItemSelectedStyle-BackColor="White" ToolbarItemSelectedStyle-Font-Bold="True" ToolbarItemSelectedStyle-Font-Names="Arial" ToolbarItemSelectedStyle-Font-Size="Smaller" ToolbarStyle="ImageOnly" WebResourceLocation="/aspnet_client/ESRI/WebADF" Width="262px">
            <ToolbarItems>
                <esri:Tool ClientAction="DragRectangle" DefaultImage="esriZoomIn.gif" HoverImage="esriZoomInU.gif"
                    JavaScriptFile="" Name="MapZoomIn" SelectedImage="esriZoomInD.gif" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                    ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomIn" Text="Zoom In"
                    ToolTip="Zoom In" />
                <esri:Tool ClientAction="DragRectangle" DefaultImage="esriZoomOut.gif" HoverImage="esriZoomOutU.gif"
                    JavaScriptFile="" Name="MapZoomOut" SelectedImage="esriZoomOutD.gif" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                    ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomOut" Text="Zoom Out"
                    ToolTip="Zoom Out" />
                <esri:Tool ClientAction="DragImage" DefaultImage="esriPan.gif" HoverImage="esriPanU.gif"
                    JavaScriptFile="" Name="MapPan" SelectedImage="esriPanD.gif" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                    ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapPan" Text="Pan"
                    ToolTip="Pan" />
                <esri:Command ClientAction="" DefaultImage="esriFullExt.gif" HoverImage="esriFullExtU.gif"
                    JavaScriptFile="" Name="MapFullExtent" SelectedImage="esriFullExtD.gif" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                    ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapFullExtent" Text="Full Extent"
                    ToolTip="Full Extent" />
                <esri:Space Size="1" />
                <esri:Tool ClientAction="Point" DefaultImage="~/images/add_point_off.png" JavaScriptFile=""
                    Name="addPoint" SelectedImage="~/images/add_point_on.png" ServerActionAssembly="App_Code"
                    ServerActionClass="AddPoint" Text="AddPoint" ToolTip="AddPoint" />
                <esri:Tool ClientAction="Polyline" DefaultImage="~/images/draw_line_off.png" JavaScriptFile=""
                    Name="AddLine" SelectedImage="~/images/draw_line_on.png" ServerActionAssembly="App_Code"
                    ServerActionClass="AddLine" Text="AddLine" ToolTip="AddLine" />
                <esri:Tool ClientAction="Polygon" DefaultImage="~/images/draw_polygon_off.png" JavaScriptFile=""
                    Name="AddPoly" SelectedImage="~/images/draw_polygon_on.png" ServerActionAssembly="App_Code"
                    ServerActionClass="AddPoly" Text="AddPoly" ToolTip="AddPoly" />
            </ToolbarItems>
            <BuddyControls>
                <esri:BuddyControl Name="Map1" />
            </BuddyControls>
        </esri:Toolbar>
        <div style="position:absolute; left: 293px; top: 434px;">
        
        </div>
        <div style="z_index:-1;position:absolute; left: 11px; top: 76px; width: 435px; height: 341px; background-color: gainsboro;" tabindex="-1">
        </div>
        <div style="position:absolute; left: 7px; top: 66px;">
        <esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" Height="342px" Width="430px" BackColor="#C0C0FF" BorderColor="#8080FF" BorderStyle="Solid" BorderWidth="2px" ClientToolGraphicsColor="GradientActiveCaption" OnExtentChanged="Map1_ExtentChanged">
        </esri:Map>
        </div>
        <div style="position:absolute; left: 454px; top: 66px; width: 228px; height: 340px;"><esri:Toc ID="Toc1" runat="server" BuddyControl="Map1" Height="341px" Width="226px" BackColor="#C0C0FF" BorderColor="#8080FF" BorderStyle="Solid" BorderWidth="2px" />
            </div>
        
    
    </div>
    <div style="position:absolute; left: 7px; top: 443px;">
        </div>
        <div id="timelabel"></div>
        <div id="measurediv"></div>
        <div style="position: absolute; width: 1px; height: 1px; z-index: 1; left: -1px; top: -1px" id="MeasureTipDiv"></div>        
        <esri:MapResourceManager ID="MapResourceManager1" runat="server">
        </esri:MapResourceManager>
    </form>
<script language="javascript">
        Init(); 
        /*
        map.vectorObject.divColor="#FF0000";
        //map.dragBoxColor = "#00FF00";
        map.backColor = "#AACC00";
        map.dragLineWidth=2;
        */
    </script>    
</body>
</html>

⌨️ 快捷键说明

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