[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737YR9Z0S6JRY0YYZJ0EKEM":3,"skill-same:01M737YR9Z0S6JRY0YYZJ0EKEM":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M737YR9Z0S6JRY0YYZJ0EKEM","create-spatial-visualization",null,"Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fcreate-spatial-visualization\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: create-spatial-visualization\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-19\"\ndescription: >\n  Create interactive maps, elevation profiles, and spatial visualizations\n  from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap)\n  or Observable (D3, deck.gl). Covers data import, coordinate system\n  handling, map styling, and export to HTML or image formats. Use when\n  visualizing a planned or completed tour route on an interactive map,\n  creating elevation profiles for hiking or cycling routes, overlaying\n  waypoints and POIs on a basemap, or building a web-based trip dashboard.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: travel\n  complexity: advanced\n  language: multi\n  tags: travel, maps, leaflet, gpx, elevation, visualization\n---\n\n# Create Spatial Visualization\n\nCreate interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data.\n\n## When to Use\n\n- Visualizing a planned or completed tour route on an interactive map\n- Creating elevation profiles for hiking or cycling routes\n- Overlaying waypoints, POIs, and route corridors on a basemap\n- Generating static map images for print reports\n- Building a web-based trip dashboard with spatial data\n\n## Inputs\n\n- **Required**: Spatial data source (GPX file, CSV with lat\u002Flon, GeoJSON, or waypoint list)\n- **Required**: Visualization type (interactive map, static map, elevation profile, heatmap)\n- **Optional**: Basemap preference (OpenStreetMap, satellite, terrain, topo)\n- **Optional**: Styling parameters (colors, line width, marker icons)\n- **Optional**: Output format (HTML widget, PNG, SVG, embedded in Quarto)\n- **Optional**: Additional layers (POI markers, area boundaries, distance markers)\n\n## Procedure\n\n### Step 1: Import Spatial Data\n\nLoad and parse the spatial data into a usable format.\n\n**R approach (sf package):**\n\n```r\n# GPX file\ntrack \u003C- sf::st_read(\"route.gpx\", layer = \"tracks\")\nwaypoints \u003C- sf::st_read(\"route.gpx\", layer = \"waypoints\")\n\n# CSV with coordinates\npoints \u003C- readr::read_csv(\"stops.csv\") |>\n  sf::st_as_sf(coords = c(\"lon\", \"lat\"), crs = 4326)\n\n# GeoJSON\nroute \u003C- sf::st_read(\"route.geojson\")\n```\n\n**JavaScript approach (for Observable\u002FD3):**\n\n```javascript\n\u002F\u002F GPX parsing\nconst gpxText = await FileAttachment(\"route.gpx\").text();\nconst parser = new DOMParser();\nconst gpxDoc = parser.parseFromString(gpxText, \"text\u002Fxml\");\n\n\u002F\u002F Extract track points\nconst trkpts = gpxDoc.querySelectorAll(\"trkpt\");\nconst coordinates = Array.from(trkpts).map(pt => ({\n  lat: +pt.getAttribute(\"lat\"),\n  lon: +pt.getAttribute(\"lon\"),\n  ele: +pt.querySelector(\"ele\")?.textContent || 0\n}));\n```\n\nVerify the coordinate reference system (CRS) is WGS 84 (EPSG:4326) for web maps.\n\n**Got:** Spatial data loaded as an sf object (R) or coordinate array (JS) with valid geometries. Point counts match expected input (e.g., a GPX track has hundreds to thousands of points).\n\n**If fail:** If GPX parsing fails, check the file is valid XML. Common issues: truncated files from GPS battery death, mixed namespaces, or GPX 1.0 vs 1.1 differences. If CRS is missing, assign it explicitly with `sf::st_set_crs(data, 4326)`. If coordinates appear inverted (lat\u002Flon swapped), check the column order.\n\n### Step 2: Process and Clean\n\nTransform raw data into analysis-ready spatial features.\n\n```\nProcessing Pipeline:\n┌─────────────────────┬──────────────────────────────────────────┐\n│ Operation           │ Purpose                                  │\n├─────────────────────┼──────────────────────────────────────────┤\n│ Remove duplicates   │ GPS often logs identical points at stops │\n│ Smooth track        │ Reduce GPS jitter in dense urban areas   │\n│ Calculate distances │ Cumulative distance along track          │\n│ Extract elevation   │ Build elevation profile data             │\n│ Segment by day      │ Split multi-day tracks into daily legs   │\n│ Buffer route        │ Create corridor for POI discovery        │\n│ Simplify geometry   │ Reduce point count for web performance   │\n└─────────────────────┴──────────────────────────────────────────┘\n```\n\n**R processing example:**\n\n```r\n# Calculate cumulative distance\ntrack_points \u003C- sf::st_cast(track, \"POINT\")\ndistances \u003C- sf::st_distance(track_points[-nrow(track_points), ],\n                             track_points[-1, ],\n                             by_element = TRUE)\ncumulative_km \u003C- cumsum(as.numeric(distances)) \u002F 1000\n\n# Extract elevation profile data\nelevation_df \u003C- data.frame(\n  distance_km = c(0, cumulative_km),\n  elevation_m = sf::st_coordinates(track_points)[, 3]\n)\n\n# Simplify for web display (keep 1% of points)\ntrack_simple \u003C- sf::st_simplify(track, dTolerance = 0.001)\n```\n\n**Got:** Clean spatial data with calculated distances, elevation extracted, and geometry simplified for the target output. No NA coordinates, no zero-length segments.\n\n**If fail:** If elevation data is missing (common with some GPS devices), use a DEM lookup service or note that elevation profile is unavailable. If track simplification removes critical shape detail, reduce the tolerance value. If distance calculations produce NA, check for empty geometries with `sf::st_is_empty()`.\n\n### Step 3: Select Visualization Type\n\nChoose and configure the appropriate visualization for the data and audience.\n\n```\nVisualization Decision Matrix:\n┌─────────────────────┬──────────────────────┬───────────────────┐\n│ Type                │ Best for             │ Tool              │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Interactive map     │ Web, exploration     │ leaflet (R),      │\n│                     │                      │ deck.gl (JS)      │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Static map          │ Print, reports       │ tmap (R),         │\n│                     │                      │ ggplot2 + ggspatial│\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Elevation profile   │ Hiking\u002Fcycling       │ ggplot2, D3       │\n│                     │ analysis             │                   │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Heatmap             │ Visit density,       │ leaflet.extras,   │\n│                     │ coverage             │ deck.gl HeatmapLayer│\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ 3D terrain          │ Mountain routes      │ rayshader (R),    │\n│                     │                      │ deck.gl TerrainLayer│\n└─────────────────────┴──────────────────────┴───────────────────┘\n```\n\nConfigure basemap tiles appropriate for the content:\n- **OpenStreetMap**: General purpose, good labels\n- **Stamen Terrain**: Hiking and outdoor routes\n- **ESRI World Imagery**: Satellite context\n- **OpenTopoMap**: Topographic contours for elevation context\n\n**Got:** A clear decision on visualization type and toolchain, with basemap selected to complement the route data.\n\n**If fail:** If the chosen tool cannot handle the data volume (e.g., 100,000+ track points in leaflet), simplify the geometry first or switch to a canvas-based renderer (deck.gl). If basemap tiles are unavailable (rare), fall back to OpenStreetMap as the most reliable free option.\n\n### Step 4: Render Map or Chart\n\nBuild the visualization with all layers and styling.\n\n**Interactive map (R\u002Fleaflet):**\n\n```r\nleaflet::leaflet() |>\n  leaflet::addProviderTiles(\"OpenTopoMap\") |>\n  leaflet::addPolylines(\n    data = track,\n    color = \"#2563eb\",\n    weight = 4,\n    opacity = 0.8\n  ) |>\n  leaflet::addCircleMarkers(\n    data = waypoints,\n    radius = 8,\n    color = \"#dc2626\",\n    fillOpacity = 0.9,\n    popup = ~name\n  ) |>\n  leaflet::addScaleBar(position = \"bottomleft\") |>\n  leaflet::addMiniMap(position = \"bottomright\")\n```\n\n**Elevation profile (R\u002Fggplot2):**\n\n```r\nggplot2::ggplot(elevation_df, ggplot2::aes(x = distance_km, y = elevation_m)) +\n  ggplot2::geom_area(fill = \"#93c5fd\", alpha = 0.4) +\n  ggplot2::geom_line(color = \"#2563eb\", linewidth = 0.8) +\n  ggplot2::labs(\n    x = \"Distance (km)\",\n    y = \"Elevation (m)\",\n    title = \"Elevation Profile\"\n  ) +\n  ggplot2::theme_minimal()\n```\n\nAdd supplementary layers as needed: distance markers every N km, day-break indicators, difficulty-colored segments, POI icons.\n\n**Got:** A rendered visualization that clearly shows the route, waypoints, and any supplementary information. Interactive maps should be responsive with working popups and zoom. Elevation profiles should have correct axis scales.\n\n**If fail:** If the map renders but shows no data, check that coordinates are in the correct CRS (EPSG:4326 for leaflet). If popups are empty, verify the column names in the popup formula. If the elevation profile has extreme spikes, filter out GPS elevation errors (values deviating more than 100 m from neighbors).\n\n### Step 5: Export and Embed\n\nSave the visualization in the target format.\n\n```\nExport Options:\n┌───────────────────┬────────────────────────────────────────────┐\n│ Format            │ Method                                     │\n├───────────────────┼────────────────────────────────────────────┤\n│ HTML widget       │ htmlwidgets::saveWidget(map, \"map.html\")   │\n│ PNG (static)      │ mapview::mapshot() or ggplot2::ggsave()    │\n│ SVG (vector)      │ ggplot2::ggsave(\"plot.svg\")                │\n│ Quarto embed      │ Place leaflet\u002Fggplot code in .qmd chunk    │\n│ GeoJSON export    │ sf::st_write(data, \"output.geojson\")       │\n│ KML (Google Earth)│ sf::st_write(data, \"output.kml\")           │\n└───────────────────┴────────────────────────────────────────────┘\n```\n\nFor Quarto embedding:\n1. Place the visualization code in a code chunk with appropriate labels\n2. Use `#| fig-cap:` for static plots or `#| label: fig-map` for cross-referencing\n3. Set `self-contained: true` in YAML to bundle tile images (increases file size)\n\n**Got:** Exported file is viewable in the target context (browser for HTML, report for embedded, print for PNG\u002FSVG). File size is reasonable (under 5 MB for HTML widgets, under 1 MB for images).\n\n**If fail:** If the HTML widget is too large, reduce tile caching or simplify geometries. If Quarto rendering fails with leaflet, ensure the htmlwidgets package is installed and the output format is HTML (leaflet does not render to PDF). For PDF output, use a static map alternative (tmap with `tmap_mode(\"plot\")`).\n\n## Validation\n\n- [ ] Spatial data imports without errors and has correct CRS\n- [ ] All track points and waypoints render in the expected geographic area\n- [ ] Elevation profile (if included) shows plausible values without extreme spikes\n- [ ] Interactive map has working zoom, pan, and popups\n- [ ] Distance and elevation scales are correctly labeled\n- [ ] Export file is viewable in the target format\n- [ ] File size is appropriate for the delivery method\n\n## Pitfalls\n\n- **CRS mismatch**: Mixing EPSG:4326 (degrees) with projected CRS (meters) causes data to render in the wrong location or at wrong scale. Always transform to EPSG:4326 for web maps.\n- **GPS elevation noise**: GPS-derived elevation is far less accurate than horizontal position. Smooth elevation data or use DEM-based elevation for profiles.\n- **Tile server rate limits**: Fetching many tiles rapidly can trigger rate limits on free tile servers. Cache tiles locally for repeated rendering, and respect usage policies.\n- **Over-detailed tracks**: Raw GPS tracks with 1-second logging produce enormous files. Simplify before web display.\n- **Leaflet in PDF**: Leaflet maps cannot render in PDF output. Use tmap or ggplot2 with ggspatial for print formats.\n- **Missing popups**: Forgetting to add `popup = ~column_name` results in markers with no information on click.\n\n## Related Skills\n\n- `plan-tour-route` — generate the route data that this skill visualizes\n- `generate-tour-report` — embed visualizations into a formatted tour report\n- `plan-hiking-tour` — source of GPX and elevation data for hiking visualizations\n- `create-quarto-report` — Quarto rendering for embedding spatial visualizations\n","# Create Spatial Visualization\n\nCreate interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data.\n\n## When to Use\n\n- Visualizing a planned or completed tour route on an interactive map\n- Creating elevation profiles for hiking or cycling routes\n- Overlaying waypoints, POIs, and route corridors on a basemap\n- Generating static map images for print reports\n- Building a web-based trip dashboard with spatial data\n\n## Inputs\n\n- **Required**: Spatial data source (GPX file, CSV with lat\u002Flon, GeoJSON, or waypoint list)\n- **Required**: Visualization type (interactive map, static map, elevation profile, heatmap)\n- **Optional**: Basemap preference (OpenStreetMap, satellite, terrain, topo)\n- **Optional**: Styling parameters (colors, line width, marker icons)\n- **Optional**: Output format (HTML widget, PNG, SVG, embedded in Quarto)\n- **Optional**: Additional layers (POI markers, area boundaries, distance markers)\n\n## Procedure\n\n### Step 1: Import Spatial Data\n\nLoad and parse the spatial data into a usable format.\n\n**R approach (sf package):**\n\n```r\n# GPX file\ntrack \u003C- sf::st_read(\"route.gpx\", layer = \"tracks\")\nwaypoints \u003C- sf::st_read(\"route.gpx\", layer = \"waypoints\")\n\n# CSV with coordinates\npoints \u003C- readr::read_csv(\"stops.csv\") |>\n  sf::st_as_sf(coords = c(\"lon\", \"lat\"), crs = 4326)\n\n# GeoJSON\nroute \u003C- sf::st_read(\"route.geojson\")\n```\n\n**JavaScript approach (for Observable\u002FD3):**\n\n```javascript\n\u002F\u002F GPX parsing\nconst gpxText = await FileAttachment(\"route.gpx\").text();\nconst parser = new DOMParser();\nconst gpxDoc = parser.parseFromString(gpxText, \"text\u002Fxml\");\n\n\u002F\u002F Extract track points\nconst trkpts = gpxDoc.querySelectorAll(\"trkpt\");\nconst coordinates = Array.from(trkpts).map(pt => ({\n  lat: +pt.getAttribute(\"lat\"),\n  lon: +pt.getAttribute(\"lon\"),\n  ele: +pt.querySelector(\"ele\")?.textContent || 0\n}));\n```\n\nVerify the coordinate reference system (CRS) is WGS 84 (EPSG:4326) for web maps.\n\n**Got:** Spatial data loaded as an sf object (R) or coordinate array (JS) with valid geometries. Point counts match expected input (e.g., a GPX track has hundreds to thousands of points).\n\n**If fail:** If GPX parsing fails, check the file is valid XML. Common issues: truncated files from GPS battery death, mixed namespaces, or GPX 1.0 vs 1.1 differences. If CRS is missing, assign it explicitly with `sf::st_set_crs(data, 4326)`. If coordinates appear inverted (lat\u002Flon swapped), check the column order.\n\n### Step 2: Process and Clean\n\nTransform raw data into analysis-ready spatial features.\n\n```\nProcessing Pipeline:\n┌─────────────────────┬──────────────────────────────────────────┐\n│ Operation           │ Purpose                                  │\n├─────────────────────┼──────────────────────────────────────────┤\n│ Remove duplicates   │ GPS often logs identical points at stops │\n│ Smooth track        │ Reduce GPS jitter in dense urban areas   │\n│ Calculate distances │ Cumulative distance along track          │\n│ Extract elevation   │ Build elevation profile data             │\n│ Segment by day      │ Split multi-day tracks into daily legs   │\n│ Buffer route        │ Create corridor for POI discovery        │\n│ Simplify geometry   │ Reduce point count for web performance   │\n└─────────────────────┴──────────────────────────────────────────┘\n```\n\n**R processing example:**\n\n```r\n# Calculate cumulative distance\ntrack_points \u003C- sf::st_cast(track, \"POINT\")\ndistances \u003C- sf::st_distance(track_points[-nrow(track_points), ],\n                             track_points[-1, ],\n                             by_element = TRUE)\ncumulative_km \u003C- cumsum(as.numeric(distances)) \u002F 1000\n\n# Extract elevation profile data\nelevation_df \u003C- data.frame(\n  distance_km = c(0, cumulative_km),\n  elevation_m = sf::st_coordinates(track_points)[, 3]\n)\n\n# Simplify for web display (keep 1% of points)\ntrack_simple \u003C- sf::st_simplify(track, dTolerance = 0.001)\n```\n\n**Got:** Clean spatial data with calculated distances, elevation extracted, and geometry simplified for the target output. No NA coordinates, no zero-length segments.\n\n**If fail:** If elevation data is missing (common with some GPS devices), use a DEM lookup service or note that elevation profile is unavailable. If track simplification removes critical shape detail, reduce the tolerance value. If distance calculations produce NA, check for empty geometries with `sf::st_is_empty()`.\n\n### Step 3: Select Visualization Type\n\nChoose and configure the appropriate visualization for the data and audience.\n\n```\nVisualization Decision Matrix:\n┌─────────────────────┬──────────────────────┬───────────────────┐\n│ Type                │ Best for             │ Tool              │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Interactive map     │ Web, exploration     │ leaflet (R),      │\n│                     │                      │ deck.gl (JS)      │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Static map          │ Print, reports       │ tmap (R),         │\n│                     │                      │ ggplot2 + ggspatial│\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Elevation profile   │ Hiking\u002Fcycling       │ ggplot2, D3       │\n│                     │ analysis             │                   │\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ Heatmap             │ Visit density,       │ leaflet.extras,   │\n│                     │ coverage             │ deck.gl HeatmapLayer│\n├─────────────────────┼──────────────────────┼───────────────────┤\n│ 3D terrain          │ Mountain routes      │ rayshader (R),    │\n│                     │                      │ deck.gl TerrainLayer│\n└─────────────────────┴──────────────────────┴───────────────────┘\n```\n\nConfigure basemap tiles appropriate for the content:\n- **OpenStreetMap**: General purpose, good labels\n- **Stamen Terrain**: Hiking and outdoor routes\n- **ESRI World Imagery**: Satellite context\n- **OpenTopoMap**: Topographic contours for elevation context\n\n**Got:** A clear decision on visualization type and toolchain, with basemap selected to complement the route data.\n\n**If fail:** If the chosen tool cannot handle the data volume (e.g., 100,000+ track points in leaflet), simplify the geometry first or switch to a canvas-based renderer (deck.gl). If basemap tiles are unavailable (rare), fall back to OpenStreetMap as the most reliable free option.\n\n### Step 4: Render Map or Chart\n\nBuild the visualization with all layers and styling.\n\n**Interactive map (R\u002Fleaflet):**\n\n```r\nleaflet::leaflet() |>\n  leaflet::addProviderTiles(\"OpenTopoMap\") |>\n  leaflet::addPolylines(\n    data = track,\n    color = \"#2563eb\",\n    weight = 4,\n    opacity = 0.8\n  ) |>\n  leaflet::addCircleMarkers(\n    data = waypoints,\n    radius = 8,\n    color = \"#dc2626\",\n    fillOpacity = 0.9,\n    popup = ~name\n  ) |>\n  leaflet::addScaleBar(position = \"bottomleft\") |>\n  leaflet::addMiniMap(position = \"bottomright\")\n```\n\n**Elevation profile (R\u002Fggplot2):**\n\n```r\nggplot2::ggplot(elevation_df, ggplot2::aes(x = distance_km, y = elevation_m)) +\n  ggplot2::geom_area(fill = \"#93c5fd\", alpha = 0.4) +\n  ggplot2::geom_line(color = \"#2563eb\", linewidth = 0.8) +\n  ggplot2::labs(\n    x = \"Distance (km)\",\n    y = \"Elevation (m)\",\n    title = \"Elevation Profile\"\n  ) +\n  ggplot2::theme_minimal()\n```\n\nAdd supplementary layers as needed: distance markers every N km, day-break indicators, difficulty-colored segments, POI icons.\n\n**Got:** A rendered visualization that clearly shows the route, waypoints, and any supplementary information. Interactive maps should be responsive with working popups and zoom. Elevation profiles should have correct axis scales.\n\n**If fail:** If the map renders but shows no data, check that coordinates are in the correct CRS (EPSG:4326 for leaflet). If popups are empty, verify the column names in the popup formula. If the elevation profile has extreme spikes, filter out GPS elevation errors (values deviating more than 100 m from neighbors).\n\n### Step 5: Export and Embed\n\nSave the visualization in the target format.\n\n```\nExport Options:\n┌───────────────────┬────────────────────────────────────────────┐\n│ Format            │ Method                                     │\n├───────────────────┼────────────────────────────────────────────┤\n│ HTML widget       │ htmlwidgets::saveWidget(map, \"map.html\")   │\n│ PNG (static)      │ mapview::mapshot() or ggplot2::ggsave()    │\n│ SVG (vector)      │ ggplot2::ggsave(\"plot.svg\")                │\n│ Quarto embed      │ Place leaflet\u002Fggplot code in .qmd chunk    │\n│ GeoJSON export    │ sf::st_write(data, \"output.geojson\")       │\n│ KML (Google Earth)│ sf::st_write(data, \"output.kml\")           │\n└───────────────────┴────────────────────────────────────────────┘\n```\n\nFor Quarto embedding:\n1. Place the visualization code in a code chunk with appropriate labels\n2. Use `#| fig-cap:` for static plots or `#| label: fig-map` for cross-referencing\n3. Set `self-contained: true` in YAML to bundle tile images (increases file size)\n\n**Got:** Exported file is viewable in the target context (browser for HTML, report for embedded, print for PNG\u002FSVG). File size is reasonable (under 5 MB for HTML widgets, under 1 MB for images).\n\n**If fail:** If the HTML widget is too large, reduce tile caching or simplify geometries. If Quarto rendering fails with leaflet, ensure the htmlwidgets package is installed and the output format is HTML (leaflet does not render to PDF). For PDF output, use a static map alternative (tmap with `tmap_mode(\"plot\")`).\n\n## Validation\n\n- [ ] Spatial data imports without errors and has correct CRS\n- [ ] All track points and waypoints render in the expected geographic area\n- [ ] Elevation profile (if included) shows plausible values without extreme spikes\n- [ ] Interactive map has working zoom, pan, and popups\n- [ ] Distance and elevation scales are correctly labeled\n- [ ] Export file is viewable in the target format\n- [ ] File size is appropriate for the delivery method\n\n## Pitfalls\n\n- **CRS mismatch**: Mixing EPSG:4326 (degrees) with projected CRS (meters) causes data to render in the wrong location or at wrong scale. Always transform to EPSG:4326 for web maps.\n- **GPS elevation noise**: GPS-derived elevation is far less accurate than horizontal position. Smooth elevation data or use DEM-based elevation for profiles.\n- **Tile server rate limits**: Fetching many tiles rapidly can trigger rate limits on free tile servers. Cache tiles locally for repeated rendering, and respect usage policies.\n- **Over-detailed tracks**: Raw GPS tracks with 1-second logging produce enormous files. Simplify before web display.\n- **Leaflet in PDF**: Leaflet maps cannot render in PDF output. Use tmap or ggplot2 with ggspatial for print formats.\n- **Missing popups**: Forgetting to add `popup = ~column_name` results in markers with no information on click.\n\n## Related Skills\n\n- `plan-tour-route` — generate the route data that this skill visualizes\n- `generate-tour-report` — embed visualizations into a formatted tour report\n- `plan-hiking-tour` — source of GPX and elevation data for hiking visualizations\n- `create-quarto-report` — Quarto rendering for embedding spatial visualizations\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"travel, maps, leaflet, gpx, elevation, visualization","Philipp Thoss","travel","1.0","multi","advanced","Julius Brussee homage — caveman","Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-04-19","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fcreate-spatial-visualization",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill create-spatial-visualization",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill create-spatial-visualization",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill create-spatial-visualization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fcreate-spatial-visualization\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]