google/gee-adhoc-maps
>- Build quick interactive HTML maps to inspect Earth Engine results. Use layered overlays on a satellite basemap with per-layer opacity, clear/show-all, and a click-to-get-coordinates tool. Use when you need to eyeball "where / what" (coverage gaps, disagreement, masks) when interacting with Earth Engine outside of the Code Editor or Colab.
npx skills add https://github.com/google/earthengine-community --skill gee-adhoc-maps
Throwaway, interactive maps to see a result and sanity-check it: coverage holes,
class masks, where two products disagree, whether an AOI matches reality.
folium + Earth Engine getMapId tile layers. Build a folium mapdirectly and add each EE layer as a tile layer from its map-id URL.
getMapId will expire in about a day; regenerate the map torevisit later.
map_id_dict['tile_fetcher'].url_format might containsunformatted placeholders (like {state.tile_base_url}) which break Folium.
Instead, construct the URL manually: `url =
f"https://earthengine.googleapis.com/v1/{map_id_dict['mapid']}/tiles/{{z}}/{{x}}/{{y}}"`
.html file and open it.tool needs to show actual Earth Engine layer values, serve the map using a
Python http.server backend with a /value endpoint. The map's JavaScript
can then make fetch() calls to query EE dynamically (e.g., via
ee.Image.reduceRegion).
(Code-Editor style): tag each EE layer with a CSS class, then on page load
add a range slider to every overlay row that sets that layer's opacity.
Note: Folium-generated TileLayers do not have a name attribute in
their Leaflet options, so you cannot match layers by name. Instead,
extract the internal layer ID directly from the checkbox element (`var
layerId = input.layerId;`) and adjust its opacity using
map_instance._layers[layerId].setOpacity(op);.
Implement by clicking each overlay checkbox through Leaflet's own handler so
layer state stays consistent (and layers can be toggled back on).
crosshair and a map click drops a lat/lon popup; when off, clicks just pan.
Grab the Leaflet map instance from the page's globals and gate the click
handler on the toggle.
doesn't pan the map.
and apply a palette; put the class order in the layer name so the name
doubles as a legend.
no fill, on top.
the overlays.
as toggles: they're the real verification tool when a derived layer looks
wrong.
Take google/gee-adhoc-maps from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.