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:
- Service field: url of the service or referenced website that is loaded in the Preview window
- Embed field: html element that can be copied and input as a customization to other web pages
- 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.
-
REST API metadata information: displays the REST API metadata entry.
There are four ways to access the Preview:
- 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.
- 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.
- 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 |
- 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.
-
Preview Map navigation controls, using the mouse:
- Drag to pan
- SHIFT + click to recenter
- SHIFT + click + drag to define an extent in which to zoom
- Mouse scroll forward to zoom in
- Mouse scroll backward to zoom out
- Double click to center and zoom in
-
Preview Map navigation controls, using the keyboard:
- Up, down, left, right Arrow keys to pan
- + key to zoom in a level
- - key to zoom out a level
-
Map navigation buttons:
- Full Extent button will zoom to the full extent of the world
- Previous Extent button will take you to the extent accessed just before the current extent, if applicable
- Next Extent button will take you forward to the extent accessed just after the current extent, if applicable
- Base Map checkbox: the basemap configured to display on the search page will also display for WMS, GeoRSS, and KML services. The Base Map checkbox will not display for ArcIMS or ArcGIS Server services. If you uncheck the checkbox - which is checked by default - the base map layer underneath the service being previewed will be turned off.