HelloViewer.WebLayout网页布局的源代码 <?xml version="1.0" encoding="utf-8"?> <WebLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="WebLayout-1.0.0.xsd"> <Title>浏览器你好</Title> <Map> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId> <HyperlinkTarget>TaskPane</HyperlinkTarget> </Map> <ToolBar> <Visible>true</Visible> <Button xsi:type="CommandItemType"> <Function>Command</Function> <Command>SetUserArea</Command> </Button> <Button xsi:type="CommandItemType"> <Function>Command</Function> <Command>OpenUserArea</Command> </Button> </ToolBar> <InformationPane> <Visible>true</Visible> <Width>200</Width> <LegendVisible>true</LegendVisible> <PropertiesVisible>true</PropertiesVisible> </InformationPane> <ContextMenu> <Visible>true</Visible> <MenuItem xsi:type="CommandItemType"> <Function>Command</Function> <Command>SetUserArea</Command> </MenuItem> <MenuItem xsi:type="CommandItemType"> <Function>Command</Function> <Command>OpenUserArea</Command> </MenuItem> </ContextMenu> <TaskPane> <Visible>true</Visible> <Width>280</Width> <TaskBar> <Visible>true</Visible> <Home> <Name>Home</Name> <Tooltip>Return to home task page</Tooltip> <Description>Return to home task page</Description> <ImageURL>../stdicons/icon_home.gif</ImageURL> <DisabledImageURL>../stdicons/icon_home_disabled.gif</DisabledImageURL> </Home> <Forward> <Name>Forward</Name> <Tooltip>Forward to next task page</Tooltip> <Description>Forward to next task page</Description> <ImageURL>../stdicons/icon_forward.gif</ImageURL> <DisabledImageURL>../stdicons/icon_forward_disabled.gif</DisabledImageURL> </Forward> <Back> <Name>Back</Name> <Tooltip>Return to previous task page</Tooltip> <Description>Return to previous task page</Description> <ImageURL>../stdicons/icon_back.gif</ImageURL> <DisabledImageURL>../stdicons/icon_back_disabled.gif</DisabledImageURL> </Back> <Tasks> <Name>Tasks</Name> <Tooltip>Task list</Tooltip> <Description>View a list of available tasks</Description> <ImageURL>../stdicons/icon_tasks.gif</ImageURL> <DisabledImageURL>../stdicons/icon_tasks_disabled.gif</DisabledImageURL> </Tasks> <MenuButton xsi:type="CommandItemType"> <Function>Command</Function> <Command>SetUserArea</Command> </MenuButton> <MenuButton xsi:type="CommandItemType"> <Function>Command</Function> <Command>OpenUserArea</Command> </MenuButton> </TaskBar> <InitialTask>userareamain.aspx</InitialTask> </TaskPane> <StatusBar> <Visible>true</Visible> </StatusBar> <ZoomControl> <Visible>true</Visible> </ZoomControl> <CommandSet> <Command xsi:type="InvokeURLCommandType"> <Name>SetUserArea</Name> <Label>设定用户区域</Label> <Tooltip>设定地图上的一个点作为当前用户的区域</Tooltip> <Description>设定地图上的一个点作为当前用户的区域</Description> <ImageURL>../stdicons/icon_invokeurl.gif</ImageURL> <DisabledImageURL>../stdicons/icon_invokeurl_disabled.gif</DisabledImageURL> <TargetViewer>All</TargetViewer> <Target>SpecifiedFrame</Target> <TargetFrame>scriptFrame</TargetFrame> <URL>digitizeuserarea.aspx</URL> <DisableIfSelectionEmpty>false</DisableIfSelectionEmpty> </Command> <Command xsi:type="InvokeURLCommandType"> <Name>OpenUserArea</Name> <Label>打开用户区域</Label> <Tooltip>将地图平移到用户设定的区域</Tooltip> <Description>将地图平移到用户设定的区域</Description> <ImageURL>../stdicons/icon_invokeurl.gif</ImageURL> <DisabledImageURL>../stdicons/icon_invokeurl_disabled.gif</DisabledImageURL> <TargetViewer>All</TargetViewer> <Target>SpecifiedFrame</Target> <TargetFrame>scriptFrame</TargetFrame> <URL>openuserarea.aspx</URL> <DisableIfSelectionEmpty>false</DisableIfSelectionEmpty> </Command> </CommandSet> </WebLayout>