零下九十一度的苦寒

从明天起,做一个幸福的人

导航

ArcGIS Explorer Web Browser support

Posted on 2008-12-15 22:43  宇尘  阅读(594)  评论(0)    收藏  举报

本文来源于:http://services.arcgisonline.com//arcgisexplorer500/help/index.htm

ArcGIS Explorer can run inside a Web browser in one of two modes, either as part of a Web page or in full page mode that consumes the entire browser window.

To run ArcGIS Explorer from within a Web page, the page needs to contain an <object> tag that points to an accessible NMF file to load into the application. The NMF file must be accessible to all clients who wish to view the Web page; typically this means the NMF file is hosted on a Web server. When the Web browser loads the Web page, it loads ArcGIS Explorer inside the page (as defined by the <object> tag) and ArcGIS Explorer loads the referenced NMF file. Any layers, tasks or results that are specified in the NMF file are loaded in the ArcGIS Explorer instance running in the Web page.

Notes

  • ArcGIS Explorer web browser capabilities within Internet Explorer 6 and Internet Explorer 7 are fully supported.

  • Viewing ArcGIS Explorer inside a web page with Firefox 2.0.0.12 requires an administrator install (per machine install). You must have Administrator privileges to install ArcGIS Explorer in this case. If you do not belong to the Administrators group, your system administrator must install the software. Once an administrator installs the software, your user account will have full web browser capabilities within Firefox 2.0.0.12.

 

How to embed ArcGIS Explorer in a Web page

The following HTML snippet demonstrates how to embed ArcGIS Explorer in a Web page. Your markup can contain any other tags you require to structure the rest of the page and you can change the height and width attributes to suit your design. Note that the value of the src parameter should reflect the location of your NMF:

<html>

<head>
  <title>ArcGIS Explorer in a Web Browser</title>
</head>

<body>
  <object type="application/esri-agx.nmf" id="AGX" height="100%" width="100%">
    <param name="src" value="http://your_web_server/somewhere.nmf"/>
      The appropriate software to display ArcGIS Explorer on this page is not installed.
      Click <a href="http://resources.esri.com/arcgisexplorer/">here</a>: to download.
  </object>
</body>

</html>

Click the following link to open a Web page authored with the above HTML: Launch ArcGIS Explorer in a Web browser.

Running ArcGIS Explorer in a browser in full page mode

An alternative to using the object tag is to have ArcGIS Explorer operate in full page mode and consume the entire browser window.   To do this you must use a MIME type; you can either configure this on a Web server so that all NMF files on the server open in a Web browser in full page mode or you can specify the MIME type in the type attribute of an <a> tag as illustrated below:

    <a href="http://myserver/mymap.nmf" type="application/esri-agx.nmf">Open NMF in browser - full screen mode</a>

A MIME type is used to determine if an NMF hosted on a Web server is to be opened by the ArcGIS Explorer desktop application, or from within a Web browser. The MIME type can be configured on the Web server or specified as a parameter in the object tag as illustrated above. If the type "application/esri-agx.nmf" has not been configured on the server, any NMF files hosted on the Web server will continue to be opened by the ArcGIS Explorer desktop application.

How running ArcGIS Explorer from within a Web browser differs from running it as a desktop application

There are some important differences of which to be aware when you run ArcGIS Explorer in a Web browser.

  1. When running ArcGIS Explorer in a desktop environment ArcGIS Explorer prompts the user to save any changes on exit, and opens the last saved map the next time it starts. When running from within a Web page, if the user chooses to save changes, any changes are saved locally, but the next time the page loads, the NMF file located on the server is loaded again – any results, layers, or tasks added to the application from the previous session are lost.
  2. The menus found at the top of the application when running in a desktop environment have been replaced by a toolbar that includes the essential commands listed below the illustration:



    Seen from left to right these buttons let you:


  3. When working with ArcGIS Explorer inside a Web browser, using your Web browser's navigation buttons (Forward | Back | Refresh) forces ArcGIS Explorer to close.
  4. When you run ArcGIS Explorer within a Web page, Dragging & Dropping supported files is disabled.
  5. Opening NMF files via the Open Content dialog is not available.
  6. Specifying Startup map options in the Options dialog is not available.
  7. Accessing the ArcGIS Explorer Resource Center is not available.
  8. If the map specified in the HTML contains the Quick Content task, this task is dropped from the map.

Requirements

ArcGIS Explorer must be installed on the client PC from which the Web page containing ArcGIS Explorer is viewed. This means the client PC must be running one of the following operating systems:

  • Windows 2000 Professional
  • Windows 2003 Server
  • Windows XP Professional or Home Edition

The client PC from which the Web page is viewed will also need to meet minimum hardware requirements documented here: http://www.esri.com/software/arcgis/explorer/about/sys-reqs.html

Currently ArcGIS Explorer supports running ArcGIS Explorer from within a Web page with any of 3 Web browsers:


  • Internet Explorer 7 (recommended)
  • Internet Explorer 6
  • Mozilla Firefox 2 (version 2.0.0.14.)
It may be possible to view Web pages running ArcGIS Explorer in unsupported browsers (e.g. Safari, Opera). If you wish to attempt this, copy the NPE2Host.dll from the Firefox plugin directory to your chosen browser's plugin directory.