Preview Function

Release 9.3.1 E-mail This Topic Printable Version Give Us Feedback

Preview Function

The Preview function is a widget that provides a map view of live data described by metatdata records in the Geoportal. For instructions on navigating the map, see the section below. The Preview can be launched from the search result page from the 'Preview' link in a search result, through the web browser url window, or from an embedded url in another web page. It is also contained in the search result "details" page, displaying only if the metadata describes a live data resource.



The Preview page has four sections:

  1. Service field: url of the service or referenced website that is loaded in the Preview window
  2. Embed field: html element that can be copied and input as a customization to other web pages
  3. Preview window: window in center of page that will display the map service, an uploaded image, the organization's website, or another element if possible. Some metadata documents do not provide enough information to populate the Preview window, or reference a service that does not support an image (for example, a CS-W service). Currently, the Preview will display ArcGIS Server services (will show a map for MapServer services), OGC WMS services, KMZ, Sensor Observations Services, and ArcIMS services.
  4. REST API metadata information: displays the REST API metadata entry.




There are four ways to access the Preview:
  1. When viewing a list of search results in the Search page, the search results will have a Preview link. Clicking on the Preview link will load the Preview page for that metadata record.
  2. If the details link is clicked for a search result that describes live data, then the details page will also display the preview map of the service in a section titled 'Live Data.
  3. Outside of the Geoportal, you can access the Preview for a specific service by entering the following into your browser:
    Syntax Example
    <Geoportal Instance Name>/catalog/livedata/preview.page?url=<service url> http://ESRI_server/geoportal/catalog/livedata/preview.jsp?url=http://esri_server:8399/arcgis/services/California_Map/MapServer/WMSServer?request=GetCapabilities&service=WMS
  4. It is also possible to embed the Preview in another webpage. Simply copy the information from the "Embed" field into the webpage (can be a page outside the Geoportal web application structure), and save the file.


How it Works: When the preview function is launched, the preview widget submits the text identified in the metadata record as the live data link to the server. The proxy on the server intercepts the link, and queries it to determine what type of live data url it is (an ArcGIS Server service, a WMS Service, an ArcIMS service, KMZ, etc.). When it identifies the type of service and confirms that the format of the url will return the live data, the server sends the url back to the widget for display in the browser.

Navigating the Preview Map

The Preview map is built using the javascript API. Navigation behavior will be like the javascript api map available as an example on the resource center.