Adding a MapTip control to a Web ADF application created from Server manager breaks the application.
上次发布: August 25, 2014ArcGIS Server (.NET)
漏洞 ID 编号
NIM065871
已提交
March 9, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS Server (.NET)
找到的版本
10.0
编程语言
C#
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
10.1 was the last release of the .NET WebADF technology. Client APIs (JavaScript/Flex/Silverlight) are recommended for web application development.
解决办法
Create the application in Visual Studio with the Visual Studio template, not the Manager template.1. Start Visual Studio.2. Click File > New > Web site.3. Under installed templates, make sure Visual C# is selected.4. Also in the New Web Site Dialog near the top center, set the left dropdown to the .NET Framework 3.5.5. In the list of templates, click Web Mapping Application.6. Click OK to create the application. (This uses the same or a similar template that the Server Manager does, so there may be some time savings.)7. When the project opens, click on the default.aspx and go to Design view.8. In design view, go the MapResourceManager1 and add a resource.9. Set the Type to an internet.10. For the Data Source use this URL: <a href="http://sampleserver1.arcgisonline.com/arcgis/services" target="_blank">http://sampleserver1.arcgisonline.com/arcgis/services</a>.11. For the Resource use: Layers@Specialty/ESRI_StatesCitiesRivers_USA.12. Click OK as needed.Next add a MapTips control: 1. In the Toolbox, under ArcGIS Web Controls, find MapTips.2. Instead of dragging the MapTips onto the page, in the Toolbox, double-click the MapTips control and it is automatically added to the page.3. Click the Format menu > Set Position > Absolute.4. Press and hold the "Down Arrow" key on the keyboard.5. Watch the MapTip box move downward; keep moving it until it is below the TOC control and even below the TaskManager control.6. Now the MapTips control is not near any other controls.7. Set the MapTips Layer property to ESRI_StatesCitiesRivers_USA.8. Set the MapTips Map property to Map1.9. Run the application10. The states are now visible; hover over one, click, and see the maptip.