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

2026

Status

Published on WordPress.org

Requires

Leaflet Map

Technologies

PHP, React, Leaflet

Languages

English and Spanish

Projects

Other projects

  • Mapa de la ruta de Magallanes y Elcano en CartoHistorias

    2026

    CartoHistorias

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

  • Carátula del podcast Ninjas del Marketing

    2020

    Ninjas del Marketing

    An online marketing podcast for beginners, with interviews, tools and recommended books.