Interactive interface for browsing global, full-resolution satellite imagery
add interaction styles to layers #2144
Benjamin Kingd5822440d5fd
diff --git a/config/default/common/config/wv.json/layers/vector/GRUMP_Settlements_v1.01_STD.json b/config/default/common/config/wv.json/layers/vector/GRUMP_Settlements_v1.01_STD.jsonindex 8fd892883..b271032e1 100644--- a/config/default/common/config/wv.json/layers/vector/GRUMP_Settlements_v1.01_STD.json+++ b/config/default/common/config/wv.json/layers/vector/GRUMP_Settlements_v1.01_STD.json@@ -1,21 +1,22 @@{"layers": {- "GRUMP_Settlements_v1.01_STD": {- "id": "GRUMP_Settlements_v1.01_STD",- "title": "Settlements (Global Rural-Urban Mapping Project, v1.01, Standard)",- "subtitle": "",- "description": "vector/GRUMP_Settlements_v1.01_STD",- "type": "vector",- "tags": "vector vectors",- "group": "overlays",- "layergroup": [- "vector"- ],- "inactive": true,- "vectorStyle": {- "id": "GRUMP_Settlements_v1.01_STD"- },- "period": "daily"- }+ "GRUMP_Settlements_v1.01_STD": {+ "id": "GRUMP_Settlements_v1.01_STD",+ "title": "Settlements (Global Rural-Urban Mapping Project, v1.01, Standard)",+ "subtitle": "",+ "description": "vector/GRUMP_Settlements_v1.01_STD",+ "type": "vector",+ "tags": "vector vectors",+ "group": "overlays",+ "feature-id": "Latlongid",+ "layergroup": [+ "vector"+ ],+ "inactive": true,+ "vectorStyle": {+ "id": "GRUMP_Settlements_v1.01_STD"+ },+ "period": "daily"+ }}-}+}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/vector/GRanD_Dams_v1.01_STD.json b/config/default/common/config/wv.json/layers/vector/GRanD_Dams_v1.01_STD.jsonindex c56eb6edb..0ab22e6e9 100644--- a/config/default/common/config/wv.json/layers/vector/GRanD_Dams_v1.01_STD.json+++ b/config/default/common/config/wv.json/layers/vector/GRanD_Dams_v1.01_STD.json@@ -1,21 +1,23 @@{"layers": {- "GRanD_Dams_v1.01_STD": {- "id": "GRanD_Dams_v1.01_STD",- "title": "Dams (Global Reservoir and Dam Database, v1.01, Standard)",- "subtitle": "",- "description": "vector/GRanD_Dams_v1.01_STD",- "type": "vector",- "tags": "vector vectors",- "group": "overlays",- "layergroup": [- "vector"- ],- "inactive": true,- "vectorStyle": {- "id": "GRanD_Dams_v1.01_STD"- },- "period": "daily"- }+ "GRanD_Dams_v1.01_STD": {+ "id": "GRanD_Dams_v1.01_STD",+ "title": "Dams (Global Reservoir and Dam Database, v1.01, Standard)",+ "subtitle": "",+ "description": "vector/GRanD_Dams_v1.01_STD",+ "type": "vector",+ "tags": "vector vectors",+ "feature-id": "GRAND_ID",+ "feature-title": "DAM_NAME",+ "group": "overlays",+ "layergroup": [+ "vector"+ ],+ "inactive": true,+ "vectorStyle": {+ "id": "GRanD_Dams_v1.01_STD"+ },+ "period": "daily"+ }}-}+}\ No newline at end of filediff --git a/config/default/common/config/wv.json/layers/vector/GRanD_Reservoirs_v1.01_STD.json b/config/default/common/config/wv.json/layers/vector/GRanD_Reservoirs_v1.01_STD.jsonindex d00bd8031..98138822f 100644--- a/config/default/common/config/wv.json/layers/vector/GRanD_Reservoirs_v1.01_STD.json+++ b/config/default/common/config/wv.json/layers/vector/GRanD_Reservoirs_v1.01_STD.json@@ -1,21 +1,22 @@{"layers": {- "GRanD_Reservoirs_v1.01_STD": {- "id": "GRanD_Reservoirs_v1.01_STD",- "title": "Reservoirs (Global Reservoir and Dam Database, v1.01, Standard)",- "subtitle": "",- "description": "vector/GRanD_Reservoirs_v1.01_STD",- "type": "vector",- "tags": "vector vectors",- "group": "overlays",- "layergroup": [- "vector"- ],- "inactive": true,- "vectorStyle": {- "id": "GRanD_Reservoirs_v1.01_STD"- },- "period": "daily"- }+ "GRanD_Reservoirs_v1.01_STD": {+ "id": "GRanD_Reservoirs_v1.01_STD",+ "title": "Reservoirs (Global Reservoir and Dam Database, v1.01, Standard)",+ "subtitle": "",+ "description": "vector/GRanD_Reservoirs_v1.01_STD",+ "type": "vector",+ "tags": "vector vectors",+ "group": "overlays",+ "feature-id": "GRAND_ID",+ "layergroup": [+ "vector"+ ],+ "inactive": true,+ "vectorStyle": {+ "id": "GRanD_Reservoirs_v1.01_STD"+ },+ "period": "daily"+ }}-}+}\ No newline at end of filediff --git a/config/default/common/vectorstyles/GRUMP_Settlements_v1.01_STD.json b/config/default/common/vectorstyles/GRUMP_Settlements_v1.01_STD.jsonindex 1612cda5f..294a3c901 100644--- a/config/default/common/vectorstyles/GRUMP_Settlements_v1.01_STD.json+++ b/config/default/common/vectorstyles/GRUMP_Settlements_v1.01_STD.json@@ -19,10 +19,19 @@"paint": {"circle-radius": {"base": 2,- "stops": [[12, 1], [22, 7]]+ "stops": [+ [+ 12,+ 1+ ],+ [+ 22,+ 7+ ]+ ]},"circle-color": "rgb(103, 236, 0)"}}]-}+}\ No newline at end of filediff --git a/config/default/common/vectorstyles/GRanD_Dams_v1.01_STD.json b/config/default/common/vectorstyles/GRanD_Dams_v1.01_STD.jsonindex 60eaa1073..2524cb4ba 100644--- a/config/default/common/vectorstyles/GRanD_Dams_v1.01_STD.json+++ b/config/default/common/vectorstyles/GRanD_Dams_v1.01_STD.json@@ -19,20 +19,139 @@"paint": {"circle-radius": {"base": 2,- "stops": [[12, 1], [22, 7]]+ "stops": [+ [+ 12,+ 1+ ],+ [+ 22,+ 7+ ]+ ]},- "circle-color": ["case",- ["==", ["get", "MAIN_USE"], "Fisheries"], "rgb(152, 230, 0)",- ["==", ["get", "MAIN_USE"], "Flood control"], "rgb(168, 0, 0)",- ["==", ["get", "MAIN_USE"], "Hydroelectricity"], "rgb(230, 230, 0)",- ["==", ["get", "MAIN_USE"], "Irrigation"], "rgb(137, 112, 68)",- ["==", ["get", "MAIN_USE"], "Navigation"], "rgb(230, 152, 0)",- ["==", ["get", "MAIN_USE"], "Other"], "rgb(255, 190, 232)",- ["==", ["get", "MAIN_USE"], "Recreation"], "rgb(132, 0, 168)",- ["==", ["get", "MAIN_USE"], "Water supply"], "rgb(38, 115, 0)",+ "circle-stroke-color": "rgb(255, 255, 255)",+ "circle-stroke-width": [+ "case",+ [+ "==",+ [+ "get",+ "selected"+ ],+ "true"+ ],+ 2,+ [+ "==",+ [+ "get",+ "selected"+ ],+ "false"+ ],+ 0,+ 0+ ],+ "circle-opacity": [+ "case",+ [+ "==",+ [+ "get",+ "selected"+ ],+ "true"+ ],+ 0.5,+ [+ "==",+ [+ "get",+ "selected"+ ],+ "false"+ ],+ 1,+ 1+ ],+ "circle-color": [+ "case",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Fisheries"+ ],+ "rgb(152, 230, 0)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Flood control"+ ],+ "rgb(168, 0, 0)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Hydroelectricity"+ ],+ "rgb(230, 230, 0)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Irrigation"+ ],+ "rgb(137, 112, 68)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Navigation"+ ],+ "rgb(230, 152, 0)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Other"+ ],+ "rgb(255, 190, 232)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Recreation"+ ],+ "rgb(132, 0, 168)",+ [+ "==",+ [+ "get",+ "MAIN_USE"+ ],+ "Water supply"+ ],+ "rgb(38, 115, 0)","rgb(255, 255, 255)"]}}]-}+}\ No newline at end of filediff --git a/config/default/common/vectorstyles/GRanD_Reservoirs_v1.01_STD.json b/config/default/common/vectorstyles/GRanD_Reservoirs_v1.01_STD.jsonindex 6cf8e2ab8..ec7aaa98b 100644--- a/config/default/common/vectorstyles/GRanD_Reservoirs_v1.01_STD.json+++ b/config/default/common/vectorstyles/GRanD_Reservoirs_v1.01_STD.json@@ -17,8 +17,52 @@"source-description": "Default","type": "fill","paint": {- "fill-color": "rgb(0, 77, 168)"+ "fill-color": "rgb(0, 77, 168)",+ "fill-opacity": [+ "case",+ [+ "==",+ [+ "get",+ "selected"+ ],+ "true"+ ],+ 0.5,+ [+ "==",+ [+ "get",+ "selected"+ ],+ "false"+ ],+ 1,+ 1+ ],+ "fill-outline-color": [+ "case",+ [+ "==",+ [+ "get",+ "selected"+ ],+ "true"+ ],+ "rgb(255, 255, 255)",+ [+ "==",+ [+ "get",+ "selected"+ ],+ "false"+ ],+ "rgb(0, 77, 168)",+ "rgb(0, 77, 168)"+ ]}}]-}+}\ No newline at end of file