技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
geojson-and-data【数据与研究】Render GeoJSON, TopoJSON, and choropleths in Folium with stable identifiers, correct coordinate order, and validated data bindings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when you need Folium's geospatial data surfaces: GeoJson, TopoJson, Choropleth, GeoJsonTooltip, GeoJsonPopup, ClickForMarker, ClickForLatLng, or JsCode callbacks tied to GeoJson.
__geo_interface__ object, or a GeoPandas GeoDataFramemarker=... customization inside GeoJson../map-and-layers/SKILL.md../plugins/SKILL.md[lat, lon]; GeoJSON coordinates are [lon, lat].GeoJson, TopoJson, or Choropleth.id, properties.*, or key_on) before styling.GeoJsonTooltip and GeoJsonPopup only after confirming the property fields exist.JsCode for on_each_feature when Python callbacks are not enough.--geojson, --csv, and --output.GeoJson accepts dicts, JSON strings, file paths, URLs, and objects with __geo_interface__; if to_crs exists, Folium reprojects to EPSG:4326 before rendering.TopoJson needs an object path such as objects.counties.Choropleth expects table keys to match key_on; bins can be an integer or an explicit edge list.ClickForMarker and ClickForLatLng are map helpers, not GeoJson.marker types.style_functions, bind loop variables early (style=style) to avoid late-binding closure bugs.embed=False, keep the source as a URL or file path and provide data that can already behave as a FeatureCollection for styling.ClickForLatLng is useful when diagnosing swapped coordinate order because it reports clicked map coordinates in Folium's [lat, lon] order.