Command Palette

Search for a command to run...

Назад к скиллам
скилл № 98541

vega-lite-maps

Use this skill when the user wants a map, choropleth or shapes in a Vega-Lite chart, or asks why such a map draws nothing, even if they never say geoshape or…

БесплатноБез исполняемых скриптов
urban-toolkitот urban-toolkit★ 37 звёзд на GitHub

Установить vega-lite-maps в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Maps in Vega-Lite

A node that returns a GeoDataFrame can be charted as a map directly. Do NOT write a conversion helper: no shapely.geometry.mapping, no manual x/y centroid columns, no flattening the GeoDataFrame into a plain DataFrame. Just return gdf, and in the Vega-Lite spec use "mark": "geoshape".

Attribute columns are addressed by their bare pandas names, exactly as for a bar chart over the same frame.

{
  "$schema": "{{vega.schema_url}}",
  "mark": "geoshape",
  "encoding": { "color": {"field": "pop", "type": "quantitative"} }
}

Curio fills in two things, and only when the spec does not already have them: the shape encoding for the frame's active geometry column, and a projection fitted to the data, on each geoshape unit and on each unit reading its input that encodes longitude or latitude (mercator for lon/lat, {"type": "identity", "reflectY": true} for a projected CRS). Do not write these yourself unless you want a specific projection; if you do write one, it is respected.

A map of several inputs draws an input's own dataset, such as input_1, never {{inputs.stacked}}, whose rows carry no geometry.

A GeoDataFrame may have MORE THAN ONE geometry column, and each keeps its own pandas name. The active column is wired automatically; any other must be named explicitly, because with several present there is no single right answer:

{
  "layer": [
    {"mark": "geoshape"},
    {"mark": "geoshape",
     "encoding": {"shape": {"field": "centroid", "type": "geojson"}}}
  ]
}

A geoshape mark draws a Point as a small circle, so a centroid layer needs no special mark type.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • evals/evals.json
  • evals/files/zip-areas-centroids.json
  • evals/truth.json

FAQ

Что делает скилл vega-lite-maps?

Use this skill when the user wants a map, choropleth or shapes in a Vega-Lite chart, or asks why such a map draws nothing, even if they never say geoshape or GeoDataFrame. It says to hand the chart the GeoDataFrame as it is, with no conversion to coordinates, which mark and encodings draw polygons, points or a second geometry column, and what Curio fills in. A map drawn by an Autark node is not this skill.

Как установить скилл vega-lite-maps?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vega-lite-maps запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vega-lite-maps с