Skip to content

Commit 3534490

Browse files
authored
New SiteMap (#16)
* first pass breaking sitemap out to context+utils+components * refacotr overlays as features, functional base map * functional features pane overlaying content area * get site features rendering on the map again * basic functioning table * restore domains feature, pattern to break out features * break sites out into feature component * Restore map-based selection * cleaner featureData and neonContext hydration pattern in state * fix state/domain selection bugs * pull in static site sampling boundary data * basic functioning site sample boundaries feature * break out aquatic reaches as a distinct feature * proof of concept build deferred JSON script * progress on tying sites/features in view to to fetches * Aquatic Reaches and Sampling Boundaries working with deferred imports * add support for AOP Flight Boxes * Add support for watershed boundaries * Add support for tower airshed boundaries * full ingest support for compound ArcGIS gallery files * Add feature to visualize drainage lines * first pass at pulling site location hierarchy data down * parse hierarchy response include location types * placeholder SVG icon, feature data awaiting fetches * Abstract all data and fetch initialization for all features * abstract rendering of polygon features * POC locations: towers and dist tick plots * initialize location on state, domain, or site (basic) * focus location and progress indication * abstract out common feature render patterns * condense features; render all terrestrial * load/render all aquatic site locations (placeholders) * Establish icon set, pipe into map * formalize jumpTo as a UI feature for testing * clean up features selector, prep for INT deploy * fix initial load resize bug * features container supports collapsing groups * Unify icon logic for sites and locations * support for inlets/outlets/buoys at lake sites * clean up highlight and popup marker interactions * provide jumpto links in cleaned up sites table view * upgrade to material table, filters and sort working * fix initial and onresize content sizing for map and table * Table fully functional for sites and locations * flesh out popups for all aquatic site features * flesh out popups for terrestrial site features * add table columns for more location details * general cleanup; document props * data-selenium annotations; feature abstraction * finalize styleguide ahead of release * add SiteMap to lib export * NeonContext do not auth fetch automatically
1 parent 4c80478 commit 3534490

File tree

773 files changed

+29844
-4206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

773 files changed

+29844
-4206
lines changed

.env.development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ REACT_APP_NEON_PATH_LD_REPO_API="/repository"
77
REACT_APP_NEON_PATH_MENU_API="/menu"
88
REACT_APP_NEON_PATH_PRODUCTS_API="/products"
99
REACT_APP_NEON_PATH_DOCUMENTS_API="/documents"
10-
REACT_APP_NEON_API_SITES_PATH="/sites"
10+
REACT_APP_NEON_PATH_SITES_API="/sites"
11+
REACT_APP_NEON_PATH_LOCATIONS_API="/locations"
1112
REACT_APP_NEON_PATH_MANIFEST_API="/portalDownloadManifestApi"
1213
REACT_APP_NEON_PATH_DOWNLOAD_API="/portalDownloadFileApi"
1314
REACT_APP_NEON_PATH_AOP_DOWNLOAD_API="/browse-data"

.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ REACT_APP_NEON_PATH_LD_REPO_API="/repository"
66
REACT_APP_NEON_PATH_MENU_API="/menu"
77
REACT_APP_NEON_PATH_PRODUCTS_API="/products"
88
REACT_APP_NEON_PATH_DOCUMENTS_API="/documents"
9-
REACT_APP_NEON_API_SITES_PATH="/sites"
9+
REACT_APP_NEON_PATH_SITES_API="/sites"
10+
REACT_APP_NEON_PATH_LOCATIONS_API="/locations"
1011
REACT_APP_NEON_PATH_MANIFEST_API="/portalDownloadManifestApi"
1112
REACT_APP_NEON_PATH_DOWNLOAD_API="/portalDownloadFileApi"
1213
REACT_APP_NEON_PATH_AOP_DOWNLOAD_API="/browse-data"

lib/components/NeonApi/NeonApi.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ declare namespace NeonApi {
77
export function getProductObservable(productCode: string): import("rxjs").Observable<any>;
88
export function getSitesJsonObservable(): import("rxjs").Observable<any>;
99
export function getSiteJsonObservable(siteCode: string): import("rxjs").Observable<any>;
10+
export function getSiteLocationHierarchyObservable(siteCode: string): import("rxjs").Observable<any>;
11+
export function getLocationObservable(location: string): import("rxjs").Observable<any>;
1012
}

lib/components/NeonApi/NeonApi.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,24 @@ var NeonApi = {
144144
*/
145145
getSiteJsonObservable: function getSiteJsonObservable(siteCode) {
146146
return _getJsonObservable("".concat(_NeonEnvironment.default.getFullApiPath('sites'), "/").concat(siteCode));
147+
},
148+
149+
/**
150+
* Gets the RxJS Observable for the locations endpoint for a given site hierarchy
151+
* @param {string} siteCode The site code to get complete hierarchy for.
152+
* @return The RxJS Ajax Observable
153+
*/
154+
getSiteLocationHierarchyObservable: function getSiteLocationHierarchyObservable(siteCode) {
155+
return _getJsonObservable("".concat(_NeonEnvironment.default.getFullApiPath('locations'), "/").concat(siteCode, "?hierarchy=true"));
156+
},
157+
158+
/**
159+
* Gets the RxJS Observable for the locations endpoint for a given named location
160+
* @param {string} location The named location to fetch.
161+
* @return The RxJS Ajax Observable
162+
*/
163+
getLocationObservable: function getLocationObservable(location) {
164+
return _getJsonObservable("".concat(_NeonEnvironment.default.getFullApiPath('locations'), "/").concat(location));
147165
}
148166
};
149167
Object.freeze(NeonApi);

0 commit comments

Comments
 (0)