Skip to content

Commit a5a6564

Browse files
authored
Fix EMIT projection (#214)
Fixing the ma projection
2 parents 63cb6ee + e35f5d6 commit a5a6564

File tree

2 files changed

+4
-2
lines changed
  • emit-ch4plume-v1/src
  • nist-interface/src/pages/dashboardContainer/helper

2 files changed

+4
-2
lines changed

emit-ch4plume-v1/src/map.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export const getMapInstance = () => {
173173
style: MAP_STYLE,
174174
center: [-98, 39],
175175
zoom: 4,
176+
projection: 'mercator',
176177
});
177178

178179
// Disable map rotation using right-click drag and touch gestures

nist-interface/src/pages/dashboardContainer/helper/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const extractMetaData = async (collections) => {
2222
// convention for metadata collection_id: public.<agency>_<data_category>_<region>_metadata
2323
// example: public.nist_testbed_lam_metadata
2424
let metaCollection = collections.map(collection => {
25-
if (collection && collection.id && collection.id.includes("metadata")) {
25+
if (collection && collection.id && collection.id.includes("metadata") && collection.id.includes("nist")) {
2626
return collection;
2727
}
2828
return null;
@@ -40,6 +40,7 @@ export const extractMetaData = async (collections) => {
4040
export const getMetaDataDictionary = (collectionsMetaData) => {
4141
const Dict = {};
4242
collectionsMetaData.forEach((metaData) => {
43+
if (!("station_code" in metaData)) return;
4344
let stationCode = metaData["station_code"].toUpperCase();
4445
if (!(stationCode in Dict)) {
4546
Dict[stationCode] = { ...metaData };
@@ -52,4 +53,4 @@ export const getMetaDataDictionary = (collectionsMetaData) => {
5253
const getStationId = (collectionId) => {
5354
const stationId = collectionId.split("_")[3];
5455
return stationId.toUpperCase();
55-
}
56+
}

0 commit comments

Comments
 (0)