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.
