{"id":60320,"date":"2026-07-06T20:37:00","date_gmt":"2026-07-06T18:37:00","guid":{"rendered":"https:\/\/jesusyesares.com\/?p=60320"},"modified":"2026-11-27T18:22:11","modified_gmt":"2026-11-27T17:22:11","slug":"cartoblocks-for-leaflet-professional-maps","status":"publish","type":"post","link":"https:\/\/jesusyesares.com\/en\/visualizacion-datos\/cartoblocks-for-leaflet-professional-maps\/","title":{"rendered":"CartoBlocks for Leaflet, my plugin to bring professional maps to everyone"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve built <a href=\"https:\/\/wordpress.org\/plugins\/cartoblocks-for-leaflet\/#description\" target=\"_blank\" rel=\"noopener\">CartoBlocks for Leaflet<\/a>, a plugin to bring professional maps in WordPress to everyone. Of course, I did it with the help of AI, and here I&#8217;ll tell you what the journey was like.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anyone who has known me for a while knows that, in my previous professional life, I worked as a <strong>geologist and GIS analyst<\/strong>. Maps have been with me and have been my passion for a long time. They still are. But the web, and WordPress in particular, was my other passion and part of my profession.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All this time, one of my goals was to merge both passions, but I have my limits and, although I&#8217;ve been tinkering with code since I was a kid, I rarely got beyond small things. And programming for GIS isn&#8217;t exactly easy. At least it wasn&#8217;t for me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For some time I&#8217;d been clear that if I wanted to build something in WordPress, it had to be a map plugin with <a href=\"https:\/\/jesusyesares.com\/en\/visualizacion-datos\/what-is-leaflet-javascript-library\/\" data-type=\"post\" data-id=\"1647\">Leaflet<\/a>. But that <strong>had already been done, and done very well<\/strong>. I&#8217;m talking about the plugin I&#8217;ve <a href=\"https:\/\/jesusyesares.com\/en\/tag\/leaflet-map\/\" data-type=\"post_tag\" data-id=\"329\">written about here<\/a> more than once, <a href=\"https:\/\/wordpress.org\/plugins\/leaflet-map\/#description\" target=\"_blank\" rel=\"noopener\">Leaflet Map<\/a>, by Bozdoz. I love this plugin, especially because it&#8217;s the closest thing to a GIS in WordPress, at least when it comes to creating a map. You can build a map from multiple layers, adding elements until you end up with fairly complex maps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But there was a point of friction for the general public: <strong>building a complex map out of shortcodes can get very confusing<\/strong>, especially for someone who isn&#8217;t familiar with the concept.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The idea and the starting point<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As I said, I wanted to build a map plugin, but <strong>I didn&#8217;t want to reinvent the wheel<\/strong>. The best Leaflet map plugin for WordPress already existed. I wasn&#8217;t going to add anything new there, but I could make it easier to use. A good thing about this plugin is that it accepts add-on plugins that extend its features. In fact, there&#8217;s <a href=\"https:\/\/wordpress.org\/plugins\/extensions-leaflet-map\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/extensions-leaflet-map\/\" target=\"_blank\" rel=\"noopener\">Extensions for Leaflet Map<\/a>, another wonderful plugin that pushes the original&#8217;s possibilities even further, to the point of making truly professional maps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My idea was to <strong>add a layer on top of Leaflet Map that would make it easier to use<\/strong>. That is, to create a map block that let you build a map with the WordPress block editor experience, while using Leaflet Map as the engine. The idea had been going round my head for a long time; my problem was my programming knowledge, and specifically programming for WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Programming for WordPress can be easy or hard. The problem here was that most of my work would be programming a block for the block editor. That means React and JavaScript, and that&#8217;s where I&#8217;m much more limited. I spent time learning: I took the plugin development course on Learn WordPress to understand how a plugin is built, and I also learned JavaScript, but that&#8217;s where I saw things getting really complicated, and that building blocks is a whole other league.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meanwhile, artificial intelligence arrived, and I realized it could help me do it (we&#8217;re talking about the very early days). I tried things out, but everything was a mess. But, as we all know, in the space of two or three years we&#8217;ve lived several lives in one. I was still using ChatGPT when I started my first serious tests for this phase of the plugin. I also <strong>tried Gemini, but it was a disaster<\/strong>. I made the first initial version of the plugin with that model, and it was dreadful. It wanted to build everything from scratch, ignoring the original plugin, so it produced a block that did everything on its own, and did it badly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I followed the advice of <a href=\"https:\/\/ayudawp.com\" data-type=\"link\" data-id=\"ayudawp.com\" target=\"_blank\" rel=\"noopener\">Fernando Tellado<\/a>, who kindly gave me some of his time and pointed me towards Claude. He gave me good advice (at that point it wasn&#8217;t even clear what I was doing), and generously shared his WordPress development course (not only with me, but with the first people who asked for it on AyudaWP&#8217;s 20th anniversary). I learned a lot there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So in the end I switched to Claude, and specifically to Claude Code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up the environment and standards<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I <strong>set up my development environment with Laravel Herd and DBngin<\/strong>. Yes, it&#8217;s unusual, but I learned it in the Learn WordPress course and it has worked very well for me. At first I was chatting with Claude (and before that with earlier AI models) and pasting code, but that was living like a caveman. Once I finally moved to Claude Code, everything started to flow. The only thing was that <strong>I had to learn to deal with the frustration of hitting token limits<\/strong> every five minutes. It was like negotiating TV or computer time as a kid.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also had to learn to set up the environment with CLAUDE.md files (global and per project), configure the WPCS standards and drill the security measures into it. <a href=\"https:\/\/github.com\/fernandotellado\/ai-skills\" data-type=\"link\" data-id=\"https:\/\/github.com\/fernandotellado\/ai-skills\" target=\"_blank\" rel=\"noopener\">Fernando Tellado&#8217;s skills<\/a> were extremely useful for that too, especially the three wp-plugin ones.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, one tip that made a huge difference, especially to my token budget, came from \u00c1lex Castell\u00f3n, a developer at <a href=\"https:\/\/close.marketing\/nosotros\/\" target=\"_blank\" rel=\"noopener\">Close.marketing<\/a>, when he recommended <a href=\"https:\/\/github.com\/JuliusBrussee\/caveman\" target=\"_blank\" rel=\"noopener\">Caveman<\/a>, <strong>a skill that makes Claude keep it short<\/strong> and talk like a normal person rather than like a tipsy, overexcited politician. This was key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Difficulties<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One of the first difficulties was getting Claude to understand how to release versions (it either forgot or released a version for every line it wrote), but <strong>the hardest part was getting it to understand that it had to respect the Leaflet Map plugin<\/strong>: we were only a layer between the user and the original plugin, and the one rendering the map on the frontend would be Leaflet Map itself, not <a href=\"https:\/\/wordpress.org\/plugins\/cartoblocks-for-leaflet\/#description\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/cartoblocks-for-leaflet\/#description\">CartoBlocks for Leaflet<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We tried three architectures before landing on the right one:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>ServerSideRender<\/strong>: the problem was that the map didn&#8217;t reinitialize, and doing anything was a real pain. It was no good.<\/li>\n\n\n\n<li><strong>Client-side rendering with native Leaflet in the editor<\/strong>: there were loads of instanceof bugs between frames, and OpenStreetMap tiles returned 403 errors because of a missing Referer header. It didn&#8217;t look good. It felt like working with a pirated plugin.<\/li>\n\n\n\n<li><strong>Iframe with an AJAX endpoint<\/strong>: this was the final one. The iframe loaded a real WordPress page running the actual shortcodes. It also fixed the 403 and guaranteed that the preview was identical to the frontend.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Another difficulty was <strong>avoiding synchronization between blocks<\/strong>, so that if you added several blocks, each one would be independent of the others and you could create different maps on the same page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once all that was solved, when it could still only draw a map and nothing more, it was time to fire the starting gun and begin implementing features. If you go through the block&#8217;s settings panel, you can imagine everything that involved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also added quality controls to the plugin, with tests, linting and CI:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHPCS + PHPStan + Jest + GitHub Actions since v0.5.<\/li>\n\n\n\n<li>A later PHPUnit suite (115 tests \/ 304 assertions), with characterization tests for the sanitizers.<\/li>\n\n\n\n<li>Security hardening: origin validation on postMessage, wp_safe_remote_get, esc_url on overlays.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In version 1.1.0 (which already shows we weren&#8217;t handling versions well ahead of the launch in the WordPress.org directory), <strong>I had to do a thorough refactor<\/strong>, taking advantage of the three days we had Fable 5 (the good one). The main file went from 1,450 to 95 lines and render.php from 614 to 105. That let me fix many other things too. I also added internationalization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The WordPress.org review<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Getting to this point seemed almost impossible to me, but I got there in the end. <a href=\"https:\/\/davidperezgar.com\/blog\/charlas\/como-preparar-tu-plugin-para-el-directorio-de-wordpress-org\/\" target=\"_blank\" rel=\"noopener\">To prepare the plugin, I highly recommend this article by David P\u00e9rez<\/a> (in Spanish), which helped me. But the key was a tool I found through a tweet from Jamie Marsland that crossed my feed: <a href=\"https:\/\/pressship.org\/\" target=\"_blank\" rel=\"noopener\">PressShip<\/a>, which makes the first upload of a plugin for review much easier. I gave the documentation to the AI and, with a few prompts, did the upload.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-x wp-block-embed-x\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"500\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">The easiest way I\u2019ve found to publish a WordPress plugin to <a href=\"https:\/\/t.co\/0A9NzbhPIN\">https:\/\/t.co\/0A9NzbhPIN<\/a> \ud83d\udc47<br><br>I used Claude Cowork + Presship (<a href=\"https:\/\/t.co\/EzZmgRuWdR\">https:\/\/t.co\/EzZmgRuWdR<\/a>) for my new Vibe Code plugin.<br><br>The whole thing took about 10 minutes and a handful of prompts.<br><br>Super smooth \ud83d\udcaa <a href=\"https:\/\/t.co\/zV8YcEN2BT\">pic.twitter.com\/zV8YcEN2BT<\/a><\/p>&mdash; Jamie Marsland &#8211; Head of WordPress YouTube \u2764\ufe0f (@pootlepress) <a href=\"https:\/\/x.com\/pootlepress\/status\/2067223966943502650?ref_src=twsrc%5Etfw\">June 17, 2026<\/a><\/blockquote><script async src=\"https:\/\/platform.x.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s when the review began. Initially they asked me to change two minor things (one of them was a blunder on my part, due to my lack of programming knowledge).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change the original name &#8220;<strong>Blocks for Leaflet Map<\/strong>&#8221; to something else, and I came up with &#8220;<strong>CartoBlocks for Leaflet<\/strong>&#8220;.<\/li>\n\n\n\n<li>On the other hand, the AI had added the TGMPA library instead of using the native Requires Plugins header (WP 6.5+). This header makes WordPress ask you to install Leaflet Map when you install my plugin, since it&#8217;s a dependency of CartoBlocks for Leaflet. Well, that was my rookie mistake.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">There were two more reviews, with a few more details about the plugin, and finally the deployment. That was one of the things I was most afraid of, since I had no idea about SVN, the version control system the directory uses for uploading plugins. But David came to the rescue again with this mini-tutorial explaining <a href=\"https:\/\/davidperezgar.com\/blog\/desarrollo-web\/publica-plugin-wordpress-desde-github\/\" target=\"_blank\" rel=\"noopener\">how to publish a plugin to SVN directly from GitHub<\/a>. Brilliant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With all this help, and with Claude Code by my side, today I finally have my plugin published in the WordPress.org directory.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"kqacWP8lMn\"><a href=\"https:\/\/wordpress.org\/plugins\/cartoblocks-for-leaflet\/\">CartoBlocks for Leaflet<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cCartoBlocks for Leaflet\u201d \u2014 Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/cartoblocks-for-leaflet\/embed\/#?secret=CxKZZXd3Au#?secret=kqacWP8lMn\" data-secret=\"kqacWP8lMn\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Oh, and of course, it&#8217;s already translated into Spanish, so it can be used in Spanish too.<\/p>\n<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:313,&quot;href&quot;:&quot;https:\\\/\\\/wordpress.org\\\/plugins\\\/cartoblocks-for-leaflet\\\/#description&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260706183838\\\/https:\\\/\\\/wordpress.org\\\/plugins\\\/cartoblocks-for-leaflet\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-23 10:56:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-28 17:24:57&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:24:57+00:00&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:323,&quot;href&quot;:&quot;https:\\\/\\\/wordpress.org\\\/plugins\\\/leaflet-map\\\/#description&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260721040133\\\/https:\\\/\\\/wordpress.org\\\/plugins\\\/leaflet-map\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-11-27 17:23:58&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-11-27T17:23:58+00:00&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:324,&quot;href&quot;:&quot;https:\\\/\\\/wordpress.org\\\/plugins\\\/extensions-leaflet-map&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20261104192422\\\/https:\\\/\\\/wordpress.org\\\/plugins\\\/extensions-leaflet-map\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-11-27 17:24:01&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-11-27T17:24:01+00:00&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:149,&quot;href&quot;:&quot;https:\\\/\\\/ayudawp.com&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260108115336\\\/https:\\\/\\\/ayudawp.com\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-23 10:56:51&quot;,&quot;http_code&quot;:202},{&quot;date&quot;:&quot;2026-08-28 17:25:04&quot;,&quot;http_code&quot;:202}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:04+00:00&quot;,&quot;http_code&quot;:202},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:315,&quot;href&quot;:&quot;https:\\\/\\\/github.com\\\/fernandotellado\\\/ai-skills&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260706183803\\\/https:\\\/\\\/github.com\\\/fernandotellado\\\/ai-skills&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-23 10:56:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-28 17:25:05&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:05+00:00&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:316,&quot;href&quot;:&quot;https:\\\/\\\/close.marketing\\\/nosotros&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260311154934\\\/https:\\\/\\\/close.marketing\\\/nosotros\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:47&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-08-23 10:56:55&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-08-28 17:25:08&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:08+00:00&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:317,&quot;href&quot;:&quot;https:\\\/\\\/github.com\\\/JuliusBrussee\\\/caveman&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260706130848\\\/https:\\\/\\\/github.com\\\/juliusbrussee\\\/caveman&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-23 10:56:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-28 17:25:05&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:05+00:00&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:318,&quot;href&quot;:&quot;https:\\\/\\\/davidperezgar.com\\\/blog\\\/charlas\\\/como-preparar-tu-plugin-para-el-directorio-de-wordpress-org&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260706183911\\\/https:\\\/\\\/davidperezgar.com\\\/blog\\\/charlas\\\/como-preparar-tu-plugin-para-el-directorio-de-wordpress-org\\\/&quot;,&quot;redirect_href&quot;:&quot;https:\\\/\\\/davidperezgar.com\\\/blog\\\/charlas\\\/como-preparar-tu-plugin-para-el-directorio-de-wordpress-org\\\/&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:46&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-08-23 10:56:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-28 17:25:09&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:09+00:00&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:319,&quot;href&quot;:&quot;https:\\\/\\\/pressship.org&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260704040835\\\/https:\\\/\\\/pressship.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-23 10:56:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-28 17:25:06&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:06+00:00&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:320,&quot;href&quot;:&quot;https:\\\/\\\/davidperezgar.com\\\/blog\\\/desarrollo-web\\\/publica-plugin-wordpress-desde-github&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260512054232\\\/https:\\\/\\\/davidperezgar.com\\\/blog\\\/desarrollo-web\\\/publica-plugin-wordpress-desde-github\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-08-20 03:54:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-23 10:56:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-08-28 17:25:10&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-28T17:25:10+00:00&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span>","protected":false},"excerpt":{"rendered":"<p>How I built (vibe coded) CartoBlocks for Leaflet, a plugin that brings professional maps to everyone.<\/p>\n","protected":false},"author":3,"featured_media":60158,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_ayudawp_aiss_exclude":false,"_ayudawp_aiss_exclude_summary":false,"_ayudawp_aiss_summary":"I spent time learning: I took the plugin development course on Learn WordPress to understand how a plugin is built, and I also learned JavaScript, but that's where I saw things getting really complicated, and that building blocks is a whole other league. One of the first difficulties was getting Claude to understand how to release versions (it either forgot or released a version for every line it wrote), but the hardest part was getting it to understand that it had to respect the Leaflet Map plugin: we were only a layer between the user and the original plugin, and the one rendering the map on the frontend would be Leaflet Map itself, not CartoBlocks for Leaflet. This header makes WordPress ask you to install Leaflet Map when you install my plugin, since it's a dependency of CartoBlocks for Leaflet.","_ayudawp_aiss_summary_provider":"extractive","_ayudawp_aiss_summary_hash":"878251dfe4e90c31082ce2a64e02d3dc3334bcba","footnotes":""},"categories":[314],"tags":[339,340,341],"class_list":["post-60320","post","type-post","status-publish","format-standard","has-post-thumbnail","category-visualizacion-datos","tag-leaflet-map","tag-mapas","tag-wordpress"],"openstation_lock":null,"openstation_contributors":[],"openstation_attached_media":[60158,1647,329],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/posts\/60320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/comments?post=60320"}],"version-history":[{"count":2,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/posts\/60320\/revisions"}],"predecessor-version":[{"id":60393,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/posts\/60320\/revisions\/60393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/media\/60158"}],"wp:attachment":[{"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/media?parent=60320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/categories?post=60320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jesusyesares.com\/en\/wp-json\/wp\/v2\/tags?post=60320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}