Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix styling of powerplants #2144

Benjamin King478772cdc065
diff --git a/config/default/common/vectorstyles/Nuclear_Power_Plant_Locations_v1_STD.json b/config/default/common/vectorstyles/Nuclear_Power_Plant_Locations_v1_STD.json
index 79876dee2..acb2fb544 100644
--- a/config/default/common/vectorstyles/Nuclear_Power_Plant_Locations_v1_STD.json
+++ b/config/default/common/vectorstyles/Nuclear_Power_Plant_Locations_v1_STD.json
@@ -17,34 +17,10 @@
"source-description": "Default",
"type": "circle",
"paint": {
- "circle-radius": {
- "base": 2,
- "stops": [
- [
- 12,
- 1
- ],
- [
- 22,
- 3.5
- ]
- ]
- },
+ "circle-radius": 3.5,
"circle-stroke-color": "rgb(204, 204, 204)",
- "circle-stroke-width": {
- "base": 0.02,
- "stops": [
- [
- 12,
- 0.02
- ],
- [
- 22,
- 0.5
- ]
- ]
- },
- "circle-color": "rgb(165, 42, 42)"
+ "circle-stroke-width": 0.5,
+ "circle-color": "rgb(165, 43, 42)"
}
}
]
diff --git a/web/css/layers.css b/web/css/layers.css
index a241f8e0c..f3f36a394 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -181,6 +181,7 @@
padding-left: 1.2em;
line-height: 0;
}
+
.layers-all .layers-all-layer:first-of-type {
margin-top: 0;
}
@@ -191,6 +192,9 @@
left: auto;
right: 1.2em;
}
+.layers-all-layer .nav-item {
+ color: #fff;
+}
.layer-picker-list-case .source-metadata h3 {
font-size: 14px;
diff --git a/web/js/modules/vector-styles/selectors.js b/web/js/modules/vector-styles/selectors.js
index 5fdc8f399..cafb96f0a 100644
--- a/web/js/modules/vector-styles/selectors.js
+++ b/web/js/modules/vector-styles/selectors.js
@@ -147,8 +147,8 @@ export function setStyleFunction(def, vectorStyleId, vectorStyles, layer, state)
const data = state.config.vectorData[def.vectorData.id];
const properties = data.mvt_properties;
const features = feature.getProperties();
- const titleKey = lodashFind(properties, { Function: 'Identify' })['Identifier'];
- const uniqueIdentifier = features[titleKey];
+ const idKey = lodashFind(properties, { Function: 'Identify' })['Identifier'];
+ const uniqueIdentifier = features[idKey];
if (uniqueIdentifier && selectedFeatures && selectedFeatures.includes(uniqueIdentifier)) {
return selectedStyleFunction(feature, styleFunction(feature, resolution));
} else {
diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.js
index 8fbfcc43e..0068e39ca 100644
--- a/web/js/modules/vector-styles/util.js
+++ b/web/js/modules/vector-styles/util.js
@@ -111,7 +111,7 @@ export function onMapClickGetVectorFeatures(e, map, store) {
const data = config.vectorData[vectorDataId];
const properties = data.mvt_properties;
const uniqueIdentifierKey = lodashFind(properties, { Function: 'Identify' })['Identifier'];
- const titleKey = lodashFind(properties, { IsTitle: true })['Identifier'];
+ const titleKey = lodashFind(properties, { IsTitle: "True" })['Identifier'];
const uniqueIdentifier = features[uniqueIdentifierKey];
const title = features[titleKey];