Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to API docs is dead #154

Open
EmeraldSnorlax opened this issue May 3, 2020 · 3 comments · May be fixed by hotosm/oam-docs#52 or #166
Open

Link to API docs is dead #154

EmeraldSnorlax opened this issue May 3, 2020 · 3 comments · May be fixed by hotosm/oam-docs#52 or #166
Labels
v1 fix Fixes and enhancements to the current version

Comments

@EmeraldSnorlax
Copy link

Hey, I am trying to embed a leaflet.js viewer that allows you view OAM imagery into a page.
However, the linked API docs (https://hotosm.github.io/oam-catalog) is dead, and 404s.
I have followed instructions on adding a map layer from leaflet's docs, but the viewer is completely grey.

Is it all possible to revive the API docs for OAM? Or perhaps point me in the right direction?
Thank you for your time.

@EmeraldSnorlax EmeraldSnorlax changed the title Link to API docs is dead, and Link to API docs is dead May 3, 2020
@TechArtistG
Copy link

I could have sworn I found these somewhere since I've developed against the API since your post. For future travelers there's a small amount of info here https://docs.openaerialmap.org/catalog/ and if you go to https://github.com/hotosm/oam-api/tree/develop/routes and look at the src there's some examples of using the API in each route file.

@cgiovando cgiovando added the v1 fix Fixes and enhancements to the current version label Apr 26, 2021
@willemarcel
Copy link

The API docs is hosted on https://hotosm.github.io/oam-api/

@EmeraldSnorlax
Copy link
Author

EmeraldSnorlax commented Jun 26, 2021

Well, it's been a while

Thanks for taking them back up, but I can't really find the information I need.

I'm not sure if this belongs here, the docs repo, or the browser repo, but I was wondering if there was something like a quick start guide for embedding imagery in a site. I've tried this page in the leaflet docs, but on inspecting the network tab shows that all the tiles 204.

(Expand) Or if you can help directly, or point me to a gitter / matrix / discord that'd also be appreciated

const M = L.map('level', {
	center: [level.center.lat, level.center.lon],
	zoom: 20,
});
L.tileLayer(level.tms, { tms: true }).addTo(M);
// level.tms is a url like https://tiles.openaerialmap.org/5bcf6bd791037900144c3ea0/0/5bcf6bd791037900144c3ede/{z}/{x}/{y}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 fix Fixes and enhancements to the current version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants