oam-api icon indicating copy to clipboard operation
oam-api copied to clipboard

Link to API docs is dead

Open EmeraldSnorlax opened this issue 5 years ago • 3 comments

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 avatar May 03 '20 14:05 EmeraldSnorlax

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.

TechArtistG avatar Mar 18 '21 18:03 TechArtistG

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

willemarcel avatar May 26 '21 14:05 willemarcel

~~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}

EmeraldSnorlax avatar Jun 26 '21 13:06 EmeraldSnorlax