interactive-maps
It routes a researcher through safe Leafmap and Folium Streamlit workflows for tiled, raster, vector, and comparison maps.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- interactive-maps
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- It routes a researcher through safe Leafmap and Folium Streamlit workflows for tiled, raster, vector, and comparison maps.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md9.4 KB
- 参考文档references/data-formats.md5.1 KB
- 参考文档references/troubleshooting.md6.3 KB
- 参考文档references/workflows.md10.3 KB
- 脚本scripts/validate_vector_input.py11.2 KB
03 SKILL.md 正文
Interactive maps
Use this leaf when a task needs a Leafmap-backed Streamlit map: basemaps and XYZ/QMS search, split views, heatmaps, marker clusters, WMS, COG/raster visualization, vector uploads, or NLS/Ordnance Survey tile overlays. Keep Earth Engine and housing-specific joins on their sibling routes.
Route the request
- Select the rendering backend before reading data:
leafmap.foliumapfor Folium controls, WMS/COG layers, XYZ tiles, andMap.to_streamlit.leafmap.keplerfor Kepler layer/config output and itsMap.to_streamlit.leafmap.deckfor PyDeck-compatible maps rendered withst.pydeck_chart.
- Classify the input as a local vector, point table, trusted WMS/COG service, XYZ/QMS provider, or prepared tile layer. Do not fetch a user-supplied URL to decide whether it is trusted. Use an exact allowlist for services that the application is willing to contact.
- For a local GeoJSON, KML, or ZIP upload, run the bundled validator first. A zero exit status and its JSON report are the pre-render gate; a nonzero status is a user-correctable input error.
- Follow the inspected signatures and concrete recipes in the references. Initialize empty selections before conditional UI branches, catch service and backend errors at the boundary, and show a readable Streamlit error rather than a traceback.
- Render only after the relevant URL, bands/visualization parameters, vector geometry/CRS, and backend checks pass. Keep remote tile selection bounded and preserve provider attribution.
Operating links
- Inspected API reference — exact signatures, module locations, and backend render calls.
- Workflows — concrete map construction recipes, validation gates, split views, and NLS overlays.
- Data formats — local vector, point, WMS, COG, and XYZ input contracts.
- Troubleshooting — URL, CRS/driver, service, backend, visualization, and tile failure recovery.
- Offline vector validator — deterministic geometry count, CRS, bounds, and column report without network access.
Completion signals
A successful invocation has a selected backend, a validated input contract, and one of these observable render signals:
- Folium: a
leafmap.foliumap.Mapreachesto_streamlit(...). - Kepler: a
leafmap.kepler.Mapreachesto_streamlit(...). - PyDeck: a
leafmap.deck.Mapreachesst.pydeck_chart(...).
Rejected URLs, malformed vectors, missing optional backends, invalid COG visualization JSON, and failed WMS capabilities must become user-visible errors. Record remote-service limits and any unverified split-layer ordering; do not silently change backend or layer semantics.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).