Project

CartoBlocks for Leaflet

A map block for the WordPress editor that brings professional Leaflet Map maps to anyone, no shortcodes needed.

destacada logo cartoblocks for Leaflet

What it is

CartoBlocks for Leaflet adds a map block to the WordPress editor. It doesn’t replace Leaflet Map: it’s a layer on top of it that lets you build maps with several layers without writing shortcodes, and leaves the rendering on the site to Leaflet Map.

How it’s built

The editor preview loads a real WordPress page inside an iframe, so what you see while editing is exactly what visitors will see. Each block is independent, so you can have several different maps on the same page.

  • PHPCS, PHPStan, Jest and GitHub Actions since version 0.5.
  • PHPUnit suite with 115 tests and 304 assertions.
  • Origin validation on postMessage and URL escaping in layers.

Status

Published in the WordPress.org plugin directory and translated into Spanish.

Fact sheet

Year

Status

Requires

Technologies

Languages

Projects

Other projects

  • Mapa de la ruta de Magallanes y Elcano en CartoHistorias

    CartoHistorias

    An atlas of interactive maps and data visualizations drawn from my reading in history, fiction and travel.

  • Mapa de la ruta de Magallanes y Elcano en CartoHistorias

    2026

    CartoHistorias

    Un atlas de mapas interactivos y visualizaciones de datos que salen de mis lecturas de historia, novela y viajes.