interactive-earth-engine-maps
Route geemap interactive Earth Engine maps, backend choice, layers, basemaps, widgets, and HTML or Streamlit map output.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- interactive-earth-engine-maps
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route geemap interactive Earth Engine maps, backend choice, layers, basemaps, widgets, and HTML or Streamlit map output.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md11.2 KB
- 参考文档references/troubleshooting.md7.2 KB
- 参考文档references/workflows.md8.8 KB
- 脚本scripts/map_smoke.py8.7 KB
03 SKILL.md 正文
Interactive Earth Engine Maps
Use this operating sub-skill when the user asks for geemap map construction or debugging: creating a map, choosing the ipyleaflet or folium backend, adding Earth Engine layers, adding basemaps or tile services, adding map widgets, comparing layers, and saving or embedding an interactive map.
Route here for
geemap.Map,geemap.geemap.Map, andgeemap.core.Mapwhen the desired map is the default ipyleaflet-backed geemap map.geemap.foliumap.MaporUSE_FOLIUM=1when the desired map is the folium-backed HTML-oriented map.- Earth Engine layer methods:
add_layer,addLayer, andadd_ee_layer. - Map positioning methods:
set_center,setCenter,center_object, andcenterObject. - Basemap and external layer methods:
add_basemap,add_tile_layer,add_wms_layer,split_map,add_raster,add_cog_layer, andadd_stac_layer. - Presentation and widget controls:
add_legend,add_colorbar,add_draw_control,add_layer_manager, andadd_inspector. - Map output methods:
to_htmlandto_streamlit. - Module surfaces that support interactive maps:
geemap.ee_tile_layers,geemap.basemaps,geemap.map_widgets, andgeemap.toolbar.
Route elsewhere
- Data conversion, local/remote data movement, Earth Engine exports,
shp_to_ee,ee_export_*,ee_to_numpy, COG/STAC URL helpers, and format troubleshooting: conversion-and-io. - Charts, static cartography, cartoee, legends/colormaps beyond map attachment, Plotly, pydeck, kepler, and maplibre style depth: visualization-and-charts.
- Timelapse generation, GIF/MP4 processing, app packaging, and deployment workflows: timelapse-and-apps.
- Earth Engine classifier conversion and ML/AI helper workflows: machine-learning-and-ai.
First actions for future agents
- For map recipes, backend choice, and Earth Engine layer patterns, read references/workflows.md.
- For signatures, aliases, backend differences, and method ownership, read references/api-reference.md.
- For failures, credentials, optional services, widget display, basemaps, palettes, legends, or colorbars, read references/troubleshooting.md.
- If the active Python environment is uncertain, run scripts/map_smoke.py with
--backend ipyleaflet --skip-ee-initor--backend folium --skip-ee-init. - For package-wide installation and Earth Engine account setup, use the root skill's installation/auth guidance if integration provides it.
Backend policy
- Prefer ipyleaflet for notebooks, drawing, layer manager, inspector, split-map UI, bidirectional widget interaction, and the richest geemap toolset.
- Prefer folium for simple map rendering, saved HTML, static Leaflet output, or lightweight Streamlit embedding.
- Use explicit imports when backend behavior matters:
import geemap.geemap as geemapfor ipyleaflet.import geemap.foliumap as geemapfor folium.
- Treat top-level
import geemapas environment-dependent: ifUSE_FOLIUMis set, it loads folium behavior; otherwise it attempts the ipyleaflet implementation. - Use
ee_initialize=Falsefor offline or pre-auth smoke checks. Remove that flag only after the user has an Earth Engine account, project, credentials, and network access.
Safety boundaries
- This sub-skill can create offline map objects and inspect method availability without Earth Engine authentication.
- Adding real Earth Engine imagery, sampling data, centering on remote EE objects, or using Inspector values requires Earth Engine initialization and network access.
add_rasterusually requires optional local tile serving support;add_cog_layerandadd_stac_layerusually require reachable titiler or catalog services.- Keep generated answers self-contained: do not ask future agents to open the original repository checkout. Use only this subtree and sibling generated skill references.
Workflow checklist
- For a map-only offline check, import the chosen backend, create
Map(..., ee_initialize=False), add a basemap or tile URL, and run the smoke script if imports are uncertain. - For an authenticated EE layer, initialize Earth Engine first, then call
add_layer,addLayer, oradd_ee_layerwith a supported EE object and a validatedvis_paramsdictionary. - For external web layers, use
add_tile_layerfor XYZ URLs andadd_wms_layerfor WMS services; match argument names to the active backend. - For COG/STAC/local raster layers, confirm optional raster dependencies, local file paths, remote URLs, and titiler or local tile serving requirements before blaming EE auth.
- For interactive controls, stay on ipyleaflet and use
add_draw_control,add_layer_manager,add_inspector,add_toolbar, oradd_guias appropriate. - For portable output, call
to_html; useto_streamlitonly when Streamlit is installed and route larger app deployment to the app sub-skill.
Troubleshooting start points
- Auth, project, proxy, or EE service failures: use
references/troubleshooting.md, section "Earth Engine auth, project, and network". - Import, kernel, Colab, Jupyter, or widget display failures: use the troubleshooting sections on kernel restart and widget display.
- Backend mismatch or
USE_FOLIUMsurprises: use the backend policy above plusscripts/map_smoke.pyand the troubleshooting backend section. - Basemap registry versus module-helper confusion: use the troubleshooting section "Basemap catalog and shadowing".
- Palette, legend, and colorbar validation errors: use the troubleshooting section "Invalid palette, legend, or colorbar values".
- Raster, COG, STAC, WMS, or XYZ layer failures: use the troubleshooting section "Optional localtileserver, titiler, and network layers".
Bundled-source policy
scripts/map_smoke.pyis the only bundled executable helper for this sub-skill.- The credentialed Earth Engine map example from the repository is intentionally reference-only and distilled into
references/workflows.md; do not ask future agents to run or open it. references/api-reference.mdowns the verified method and module surface; keep new API detail there rather than expanding this router.references/troubleshooting.mdowns the operational failure matrix; keep new failure notes there rather than scattering them through workflows.- Verification cases and reports belong outside this runtime subtree; this sub-skill only contains operating instructions and helpers.
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).