developmentseed / developmentseed/eoAPI

[Custom runtimes] Make the mosaic map endpoint more interactive

未关闭
#79 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement Feature Request
主要语言
Shell
星标
326
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

### Discussed in https://github.com/developmentseed/eoAPI/discussions/77

Originally posted by **hrodmn** May 17, 2023
@vincentsarago I think eoAPI is the perfect foundation for some work that I am doing at NCX right now. I want to be able to a) build mosaic endpoints on the fly (I think you are already looking at this [here](https://github.com/developmentseed/eoAPI/pull/62), b) manipulate the asset/rescale/colormap parameters for a mosaic and have some more interactive features (layer control, basemap control, etc) while browsing the `map` endpoint (I think a lot of the code for asset display control already exists [here](https://github.com/developmentseed/eoAPI/blob/main/runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html)).

Here are a few ideas for some features to build out:

1. Add a basemap! Maybe a few options like Stamen Toner and some sort of imagery
2. Add a tile specification panel to the map that allows you to specify assets, rescale, colormap, etc (similar to raster STAC item viewer). If you add those parameters to the url (e.g. `...{searchid}/map?assets=cog&rescale=0,1000`, those parameters get pre-loaded.
3. When you load the `map` endpoint without any map parameters, load the basemap with the `bbox` for the `searchid` and prompt the user to provide the tile specification in the toolbar.
4. Add a tile layer control to make it possible to toggle the tiles on/off

I think we can build most by borrowing code from the raster viewer endpoint!

贡献指南

打开贡献指南

调研方向

从自定义 runtime 地图端点开始,检查 runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html,寻找可复用的资产显示控件。查看讨论 77 和相关的 pull request 62,以了解提议的范围。当地图支持底图选择、瓦片规范参数、URL 预加载和瓦片图层切换时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

领域
api, frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。