interactive-maps
Routes leafmap users to interactive ipyleaflet and folium map workflows, including basemaps, layers, legends, widgets, splits, and HTML export.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- interactive-maps
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes leafmap users to interactive ipyleaflet and folium map workflows, including basemaps, layers, legends, widgets, splits, and HTML export.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md2.4 KB
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md1.9 KB
03 SKILL.md 正文
Interactive Maps
Purpose
Use this sub-skill for the everyday leafmap workflow: create an interactive map, choose the right backend, add layers, show legends or widgets, and export a shareable result.
Read this when
- The user wants to build or modify a Jupyter map with
leafmap. - The user asks about
ipyleafletvsfoliumbehavior. - The user needs basemaps, legends, colorbars, widgets, split views, linked maps, or layer controls.
- The user wants a minimal HTML export or a notebook map that works without revisiting the source repo.
What this sub-skill owns
- Default
leafmap.Mapbehavior and backend selection. leafmap.leafmapandleafmap.foliumapmap creation.- Basemaps, WMS/XYZ layers, GeoJSON, GeoDataFrame, CSV, KML, shapefile, heatmap, point, marker, overlay, and export workflows.
- Toolbar, widgets, legends, colormaps, split maps, and linked maps.
What this sub-skill does not own
- STAC, Planetary Computer, OSM, fire, Terrascope, and other data-source helpers.
- MapLibre viewers and CLI routes.
- Alternative backends such as kepler, plotly, bokeh, pydeck, deck.gl, HERE, or mapbox.
First place to look
references/workflows.mdfor short recipes.references/api-reference.mdfor the verified map methods and helper names.references/troubleshooting.mdwhen widgets, backend fallback, or rendering fails.../../scripts/check_leafmap_smoke.pyfor a quick smoke check.
How to route a request
- Start with
leafmap.Map()unless the user explicitly wants folium. - Use
import leafmap.foliumap as leafmapwhen the user is in Colab, marimo, or wants a static folium map. - Use the helper references when the request mentions a layer or control name rather than a backend name.
- If the task actually needs remote data acquisition or a standalone viewer, route out to the owning sub-skill instead of expanding this one.
Typical workflow
- Pick the backend.
- Create the map with the desired center, zoom, height, and controls.
- Add basemaps and layers.
- Add legends, colorbars, or widgets if needed.
- Export to HTML when sharing outside the notebook.
Common decision points
- Prefer ipyleaflet for interactive notebook workflows that need widget-driven controls.
- Prefer folium when the environment falls back to static rendering or the user explicitly wants a lightweight HTML map.
- Prefer root smoke helper output when you need to confirm the package is usable before trying a larger notebook workflow.
Support files
- Use the bundled references rather than the source checkout when you need the verified method names or troubleshooting steps.
- The root smoke helper is shared across sub-skills, so this sub-skill does not need its own separate runner unless a future revision adds one.
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).