Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Contracted Catchments not rendering in National Map #20

Open
benjaminleighton opened this issue Oct 28, 2019 · 6 comments
Open

Contracted Catchments not rendering in National Map #20

benjaminleighton opened this issue Oct 28, 2019 · 6 comments
Assignees

Comments

@benjaminleighton
Copy link
Contributor

Via @ashleysommer

The JSON api isn't documented. The way you decode it, is go to the main NationalMap site, add a new layer, set up your view how you want it (choose background layer, etc) then click the Share button. In the sharing advanced settings, uncheck "shorten url", this will give you a majorly long URL. Take the url-encoded string from off the end of the URL, and put it through a url-encoding decoder, then through a JSON formatter for better readability.
The resulting payload is what I refer to as the JSON API config.
See the ContractedCatchment HTML template in the geofabricld source code to see the config I have embedded (which is now not working).

@benjaminleighton benjaminleighton self-assigned this Oct 28, 2019
@benjaminleighton
Copy link
Contributor Author

Fixed in #19 but not great formating

@benjaminleighton
Copy link
Contributor Author

Also redeployed so fixed in prod off that branch

@jyucsiro
Copy link

Cool looks good. I imagine this approach would apply to RR and DD pages also?

@benjaminleighton
Copy link
Contributor Author

Ah I should've realized they'd likely be a problem too. Yes I'll have a look

@benjaminleighton
Copy link
Contributor Author

I've redeployed for RR and DD as well as trying to fix the hy features views across those and CC. I think that covers it.

@ashleysommer
Copy link
Contributor

Reopening this, there is a related issue now Drainage Divisions aren't rendering properly in National Map.

@ashleysommer ashleysommer reopened this Jan 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants