diff --git a/lib/ReactViews/Preview/MappablePreview.jsx b/lib/ReactViews/Preview/MappablePreview.jsx index a6cf1edf27b..7bd9dc2c161 100644 --- a/lib/ReactViews/Preview/MappablePreview.jsx +++ b/lib/ReactViews/Preview/MappablePreview.jsx @@ -2,7 +2,6 @@ import React from 'react'; import DataPreviewSections from './DataPreviewSections'; import DataPreviewMap from './DataPreviewMap.jsx'; -import DataPreviewUrl from './DataPreviewUrl.jsx'; import ObserveModelMixin from '../ObserveModelMixin'; import Styles from './mappable-preview.scss'; import renderMarkdownInReact from '../../Core/renderMarkdownInReact'; @@ -35,12 +34,12 @@ const MappablePreview = React.createClass({ }, render() { - const metadataItem = this.props.previewed.nowViewingCatalogItem || this.props.previewed; + const catalogItem = this.props.previewed.nowViewingCatalogItem || this.props.previewed; return (
-

{this.props.previewed.name}

- +

{catalogItem.name}

+
@@ -52,33 +51,95 @@ const MappablePreview = React.createClass({ Back to the map
- - 0}> -
-

Description

- {renderMarkdownInReact(this.props.previewed.description, this.props.previewed)} -
-
- -

- Please contact the provider of this data for more information, including information - about usage rights and constraints. -

-
-
+ 0}> +
+

Description

+ {renderMarkdownInReact(catalogItem.description, catalogItem)} +
+
+ + +

This file only exists in your browser. To share it, you must load it onto a public web server.

+
+ + +

Please contact the provider of this data for more information, including information about usage rights and constraints.

+
- + - + 0}>

Data Custodian

- {renderMarkdownInReact(metadataItem.dataCustodian, metadataItem)} + {renderMarkdownInReact(catalogItem.dataCustodian, catalogItem)}
- - + + +

{catalogItem.typeName} URL

+ + +

+ This is a WMS + service, which generates map images on request. It can be used in GIS software with this + URL: +

+
+ +

+ This is a WFS + service, which transfers raw spatial data on request. It can be used in GIS software with this + URL: +

+
+
+ + + + + +

+ Layer name{catalogItem.layers.split(',').length > 1 ? 's' : ''}: {catalogItem.layers} +

+
+ +

+ Type name{catalogItem.typeNames.split(',').length > 1 ? 's' : ''}: {catalogItem.typeNames} +

+
+
+
+ + +

Metadata URL

+

+ {catalogItem.metadataUrl} +

+
+ + +

Data URL

+

+ + + Use the link below to download the data. See the + {catalogItem.dataUrlType.indexOf('wfs') === 0 && Web Feature Service (WFS) documentation} + {catalogItem.dataUrlType.indexOf('wcs') === 0 && Web Coverage Service (WCS) documentation} + for more information on customising URL query parameters. + + + Use the link below to download data directly. + + +
+ {catalogItem.dataUrl} +

+