Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update vector alert content #2884

Benjamin King1693b8563452
diff --git a/web/images/vector-alert.png b/web/images/vector-alert.png
index 1e689b172..73e0cc5e0 100644
Binary files a/web/images/vector-alert.png and b/web/images/vector-alert.png differ
diff --git a/web/js/components/feature-alert/vector-alert-modal.js b/web/js/components/feature-alert/vector-alert-modal.js
new file mode 100644
index 000000000..1c3a345aa
--- /dev/null
+++ b/web/js/components/feature-alert/vector-alert-modal.js
@@ -0,0 +1,46 @@
+import React from 'react';
+import { Container, Row, Col } from 'reactstrap';
+
+const VectorAlertModalBody = () => (
+
+ <Container className="event-alert-modal-body">
+ <Row className="p-2">
+ <h2>
+ What are vector layers and how do they differ from raster(image) layers?
+ </h2>
+ </Row>
+
+ <Row className="p-3">
+ <p>
+ Vector layers identify locations on earth using points, line segments or polygons while raster layers represent locations on earth through a grid of cells or pixels that have associated color values. The vector layers have attribute information that can be examined when a vector feature is clicked. For example, when a point is clicked on in the Dams layer, a table of attributes will appear including the dam name, river, main use, representative capacity, etc.
+ </p>
+ </Row>
+ <Row className="p-2">
+ <h2>
+ Why can&nbsp;t I click on a feature in a vector layer?
+ </h2>
+ </Row>
+ <Row className="p-3">
+ <p>
+ To speed up map interactions, vector layers that have a vast number of features are rendered as raster images in outer zoom levels. Zoom in to be able to query the vector layer.
+ </p>
+ </Row>
+ <Row className="p-2">
+ <h2>
+ How can I determine which layers have clickable features?
+ </h2>
+ </Row>
+ <Row className="p-3">
+ <Col>
+ <p>
+ If you see the blue pointer icon next to the layer in the sidebar Layer List, you should be able to click on that layer&nbsp;s features in order to access attribute information associated with that vector feature. If you see the blue pointer with a red X over it, you are zoomed out too far and the layer is being rendered as a raster, zoom in to be able to examine the attribute information of the vector layer.
+ </p>
+ </Col>
+ <Col>
+ <img src="images/vector-alert.png" />
+ </Col>
+ </Row>
+ </Container>
+);
+
+export default VectorAlertModalBody;
diff --git a/web/js/components/layer/vector/alert.js b/web/js/components/layer/vector/alert.js
deleted file mode 100644
index b5f3fcf2c..000000000
--- a/web/js/components/layer/vector/alert.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import React from 'react';
-import { Container, Row, Col } from 'reactstrap';
-
-const VectorAlertModalBody = () => (
-
- <Container className="event-alert-modal-body">
- <Row className="p-2">
- <h2>
- What are vector layers and how do they differ from raster(image) layers?
- </h2>
- </Row>
- <Row className="p-3">
- <p>
- Vector layers are layers that have sets of information associated with each&nbsp;
- pixel. Raster layers provide tiled PNGs or JPEGs that only have color values associated with each pixel.
- </p>
- </Row>
- <Row className="p-2">
- <h2>
- Why can’t I click on a feature in a vector layer?
- </h2>
- </Row>
- <Row className="p-3">
- <p>
- Some vector layers that have a vast number of features are&nbsp;
- rendered as raster images in outer zoom levels to enhance the&nbsp;
- speed of map interactions (dragging and zooming) these
- layers are render.
- </p>
- </Row>
- <Row className="p-2">
- <h2>
- How can I determine which layers have clickable features?
- </h2>
- </Row>
- <Row className="p-3">
- <Col>
- <p>
- If you see the pointer icon next to the layer, you should be able to click on that layer&#39;s features in order to access metadata associated with that feature.
- </p>
- </Col>
- <Col>
- <img src="images/vector-alert.png" />
- </Col>
- </Row>
- </Container>
-);
-
-export default VectorAlertModalBody;
diff --git a/web/js/modules/alerts/constants.js b/web/js/modules/alerts/constants.js
index c1477525e..2cd3ea5c5 100644
--- a/web/js/modules/alerts/constants.js
+++ b/web/js/modules/alerts/constants.js
@@ -1,6 +1,6 @@
import EventsAlertModalBody from '../../components/events/alert-body';
import CompareAlertModalBody from '../../components/compare/alert';
-import VectorAlertModalBody from '../../components/layer/vector/alert';
+import VectorAlertModalBody from '../../components/feature-alert/vector-alert-modal';
export const TOGGLE_VECTOR_ALERT = 'ALERTS/TOGGLE_VECTOR_ALERT';
export const DISABLE_VECTOR_ALERT = 'ALERTS/DISABLE_VECTOR_ALERT';
@@ -32,7 +32,7 @@ export const MODAL_PROPERTIES = {
vectorModalProps: {
id: 'vector_layer_info',
props: {
- headerText: 'Vector features may not be clickable at all times.',
+ headerText: 'Vector features may not be clickable at all zoom levels.',
backdrop: false,
size: 'lg',
clickableBehindModal: true,