Gallery / Maps & spatial

sf

The same names, on paper

The Soho pump map again, with each name backed by a measured box. Set beside the plain-text version it shows what the box buys over a busy fill.

The same names, on paper

Source

Svelte, builder, JSON

<script lang="ts">
  import {
    CoordFixed,
    GeomSf,
    GeomSfLabel,
    GGPlot,
    GuideNone,
    Labs,
    ThemeClassic,
  } from "@ggsvelte/svelte";

  import { pumpNeighbourhoods } from "./data.js";
</script>

<GGPlot
  data={pumpNeighbourhoods}
  aes={{ fill: "pump", label: "pump" }}
  width={640}
  height={400}
>
  <ThemeClassic />
  <CoordFixed />
  <GuideNone channel="fill" />
  <Labs
    title="The same names, on paper"
    subtitle="geom_sf_label backs each pump's name with a measured box"
  />
  <GeomSf alpha={0.75} linewidth={0.8} />
  <GeomSfLabel padding={3} radius={2} size={11} />
</GGPlot>

Meta

Details

Family
Maps & spatial
Source
sf/boxed-labels
Rendering
SVG
Techniques

sf · sf_label · label · box · geojson · centroid · map