{"id":95353,"date":"2018-12-16T11:48:53","date_gmt":"2018-12-16T11:48:53","guid":{"rendered":"https:\/\/es.wordpress.org\/plugins\/leaflet-map-block\/"},"modified":"2025-05-28T17:28:22","modified_gmt":"2025-05-28T17:28:22","slug":"map-block-leaflet","status":"publish","type":"plugin","link":"https:\/\/srd.wordpress.org\/plugins\/map-block-leaflet\/","author":15779632,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.2.2","stable_tag":"3.2.2","tested":"6.8.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"Map Block Leaflet","header_author":"Jes\u00fas Olazagoitia","header_description":"Leaflet Map Block -- Allows embed maps in your contents, good alternative to Google Maps without the need for api key","assets_banners_color":"bfd8e7","last_updated":"2025-05-28 17:28:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/goiblas.com","rating":5,"author_block_rating":5,"active_installs":700,"downloads":14920,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":1,"sections":["description","changelog"],"tags":{"1.2.1":{"tag":"1.2.1","author":"deployer","date":"2019-04-10 17:41:02"},"1.3.0":{"tag":"1.3.0","author":"deployer","date":"2019-04-14 16:41:16"},"1.4.0":{"tag":"1.4.0","author":"deployer","date":"2019-05-14 20:49:13"},"1.5.0":{"tag":"1.5.0","author":"deployer","date":"2019-07-14 21:40:11"},"1.6.1":{"tag":"1.6.1","author":"deployer","date":"2019-07-14 22:00:38"},"1.7.0":{"tag":"1.7.0","author":"deployer","date":"2019-10-05 10:40:33"},"1.7.1":{"tag":"1.7.1","author":"deployer","date":"2019-11-08 17:20:40"},"1.8.1":{"tag":"1.8.1","author":"deployer","date":"2019-11-09 12:00:39"},"1.8.2":{"tag":"1.8.2","author":"deployer","date":"2020-01-19 09:40:45"},"1.8.3":{"tag":"1.8.3","author":"goiblas","date":"2020-05-28 19:37:14"},"1.8.4":{"tag":"1.8.4","author":"goiblas","date":"2020-10-02 09:57:08"},"1.8.5":{"tag":"1.8.5","author":"goiblas","date":"2020-10-19 10:01:46"},"1.8.6":{"tag":"1.8.6","author":"goiblas","date":"2021-01-02 19:29:54"},"1.8.7":{"tag":"1.8.7","author":"goiblas","date":"2021-01-27 08:23:37"},"2.0.0":{"tag":"2.0.0","author":"goiblas","date":"2021-04-15 08:20:39"},"2.0.1":{"tag":"2.0.1","author":"goiblas","date":"2021-04-15 08:53:27"},"2.0.2":{"tag":"2.0.2","author":"goiblas","date":"2021-07-14 15:57:09"},"2.0.3":{"tag":"2.0.3","author":"goiblas","date":"2021-07-16 09:03:41"},"2.1.0":{"tag":"2.1.0","author":"goiblas","date":"2021-11-27 07:48:40"},"2.2.0":{"tag":"2.2.0","author":"goiblas","date":"2021-12-29 15:52:07"},"2.2.1":{"tag":"2.2.1","author":"goiblas","date":"2022-01-25 18:36:15"},"3.0.0":{"tag":"3.0.0","author":"goiblas","date":"2023-02-12 10:48:13"},"3.1.0":{"tag":"3.1.0","author":"goiblas","date":"2023-03-07 16:20:03"},"3.1.1":{"tag":"3.1.1","author":"goiblas","date":"2023-03-20 11:54:54"},"3.2.0":{"tag":"3.2.0","author":"goiblas","date":"2024-06-10 10:49:57"},"3.2.1":{"tag":"3.2.1","author":"goiblas","date":"2025-04-20 06:19:14"},"3.2.2":{"tag":"3.2.2","author":"goiblas","date":"2025-05-28 17:28:22"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":8},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3066247,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3066247,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"map-block-leaflet\/map-block-leaflet":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":2,"name":"map-block-leaflet\/map-block-leaflet","version":"3.1.0","title":"Map Block Leaflet","category":"embed","description":"Allows embed maps in your contents, good alternative to Google Maps without the need for api key","keywords":["map","leaflet"],"attributes":{"lat":{"type":"number","default":40.416775},"lng":{"type":"number","default":-3.70379},"zoom":{"type":"number","default":15},"height":{"type":"number","default":220},"themeId":{"type":"number","default":1},"themeUrl":{"type":"string","default":"https:\/\/{s}.basemaps.cartocdn.com\/rastertiles\/voyager\/{z}\/{x}\/{y}{r}.png"},"themeAttribution":{"type":"string","default":"&copy; <a href=\"http: \/\/www.openstreetmap.org\/copyright\">OpenStreetMap<\/a> &copy; <a href=\"https:\/\/carto.com\/attribution\">CARTO<\/a>"},"disableScrollZoom":{"type":"boolean","default":true},"content":{"type":"string","default":""},"markerImage":{"type":"object","default":null},"markerSize":{"type":"number","default":36}},"supports":{"html":false,"align":["wide","full"],"alignWide":true},"textdomain":"map-block-leaflet","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","render":"file:.\/render.php","style":"lib-css-map-block-leaflet","viewScript":"lib-js-map-block-leaflet"},"map-block-leaflet\/map-block-leaflet-multimarker":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":2,"name":"map-block-leaflet\/map-block-leaflet-multimarker","version":"3.1.0","title":"Map Leaflet multimarker","category":"embed","description":"Easy way to inside maps in your contents","keywords":["map","leaflet","multimarker"],"attributes":{"markers":{"type":"array","default":[]},"height":{"type":"number","default":220},"themeId":{"type":"number","default":1},"themeUrl":{"type":"string","default":"https:\/\/{s}.basemaps.cartocdn.com\/rastertiles\/voyager\/{z}\/{x}\/{y}{r}.png"},"themeAttribution":{"type":"string","default":"&copy; <a href=\"http: \/\/www.openstreetmap.org\/copyright\">OpenStreetMap<\/a> &copy; <a href=\"https:\/\/carto.com\/attribution\">CARTO<\/a>"}},"supports":{"html":false,"align":["wide","full"],"alignWide":true},"textdomain":"map-block-leaflet","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","render":"file:.\/render.php","style":"lib-css-map-block-leaflet","viewScript":"lib-js-map-block-leaflet"}},"tagged_versions":["1.2.1","1.3.0","1.4.0","1.5.0","1.6.1","1.7.0","1.7.1","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.2.0","2.2.1","3.0.0","3.1.0","3.1.1","3.2.0","3.2.1","3.2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3066247,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3066247,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Simple map within the editor","2":"Realistic theme map"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4121,1332,148076,4595,2909],"plugin_category":[46,49],"plugin_contributors":[165653],"plugin_business_model":[],"class_list":["post-95353","plugin","type-plugin","status-publish","hentry","plugin_tags-blocks","plugin_tags-editor","plugin_tags-gutenberg","plugin_tags-leaflet","plugin_tags-map","plugin_category-editor-and-writing","plugin_category-maps-and-location","plugin_contributors-goiblas","plugin_committers-goiblas"],"banners":{"banner":"https:\/\/ps.w.org\/map-block-leaflet\/assets\/banner-772x250.png?rev=3066247","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/map-block-leaflet\/assets\/icon-128x128.png?rev=3066247","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/map-block-leaflet\/assets\/screenshot-1.png?rev=3066247","caption":"Simple map within the editor"},{"src":"https:\/\/ps.w.org\/map-block-leaflet\/assets\/screenshot-2.png?rev=3066247","caption":"Realistic theme map"}],"raw_content":"<!--section=description-->\n<p>The Map Block Leaflet is designed to work with the <a href=\"https:\/\/wordpress.org\/plugins\/gutenberg\/\" title=\"Gutenberg Plugin\">Gutenberg editor<\/a>. It has been created to facilitate, as much as possible, embed maps in the content without the need to include an API key and be able to customize it visually.<\/p>\n\n<p><strong>Contribute:<\/strong><\/p>\n\n<p>This plugin is open source software, and you may actively contribute on <a href=\"https:\/\/github.com\/goiblas\/leaft-map-block\" title=\"Map Block Leaflet Repository\">Github<\/a>.<\/p>\n\n<h3>Installation &amp; Setup<\/h3>\n\n<p>Note: This plugin requires WordPress 5 or the Gutenberg plugin active.<\/p>\n\n<ol>\n<li>Upload 'leaflet-map-block' to the '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Add new block, find it in the category embed.<\/li>\n<li>Search a location and change the option until you get the disdained look.<\/li>\n<li>Publish and enjoy<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>3.2.2<\/h4>\n\n<ul>\n<li><strong>Security.<\/strong> Escape URLs using esc_url for map and marker images, thanks to Peter Thaleikis.<\/li>\n<\/ul>\n\n<h4>3.2.1<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Multiple markers html escape<\/li>\n<\/ul>\n\n<h4>3.2.0<\/h4>\n\n<ul>\n<li><strong>feat.<\/strong> Enable custom marker icon, thanks to @danidub @glycymeris<\/li>\n<li><strong>Improvement.<\/strong> Update version of library Leaflet map<\/li>\n<\/ul>\n\n<h4>3.1.1<\/h4>\n\n<ul>\n<li><strong>Fix.<\/strong> Escape tooltip\u2019s content, thanks to Jordi Fita<\/li>\n<\/ul>\n\n<h4>3.1.0<\/h4>\n\n<ul>\n<li><strong>Fix.<\/strong> Single marker wait for dom ready for initialize map<\/li>\n<li><strong>Improvement.<\/strong> Multimarker content marker is not required, thanks to @josivela<\/li>\n<li><strong>Improvement.<\/strong> Improve the organization of markers using labels, thanks to @josivela<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Rewrite using block.json<\/li>\n<li><strong>Fix.<\/strong> Address Search does not work, thanks to @davask42<\/li>\n<li><strong>Fix.<\/strong> Multimarker add new markers does not work, thanks to @josivela<\/li>\n<li><strong>Fix.<\/strong> Replace black and white theme<\/li>\n<li><strong>Feat.<\/strong> Multimarker allow modification latitude and longitude<\/li>\n<li><strong>Improvement.<\/strong> Update version of library Leaflet map<\/li>\n<li><strong>Improvement.<\/strong> Add WordPress tested up version to 6.1<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Add WordPress tested up version to 5.9<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Invalidate size on resize container, thanks to @liqueurdetoile<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Remove assets when it isn't in page, thanks to @PatrickFaramaz<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li><strong>Fix.<\/strong> Multimarker frontend, thanks to @baagi510<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Resize user experience<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Increase tested WordPress version<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li><strong>Feat.<\/strong> Multimarker block<\/li>\n<li><strong>Improvement.<\/strong> Refactor to functional component <\/li>\n<li><strong>Improvement.<\/strong> Use wp-scripts to compile code<\/li>\n<\/ul>\n\n<h4>1.8.7<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Remove sourceMap warning, when used in Chrome Devtools, thanks to @thomasprice61<\/li>\n<li><strong>fix.<\/strong> Replace wikimedia tiles by Stadia OSMBright<\/li>\n<\/ul>\n\n<h4>1.8.6<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Fix center when it is inside columns, thanks to @aribet<\/li>\n<\/ul>\n\n<h4>1.8.5<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Enqueue lib assets from register_block_type fix use blocks outside the content, thanks to @youdaman<\/li>\n<\/ul>\n\n<h4>1.8.4<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Update version of library Leaflet map<\/li>\n<\/ul>\n\n<h4>1.8.3<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Change automated deploy to github actions<\/li>\n<\/ul>\n\n<h4>1.8.1<\/h4>\n\n<ul>\n<li><strong>fix.<\/strong> Update version files<\/li>\n<\/ul>\n\n<h4>1.8.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Support custom theme provider, thanks to @jeroensmeets<\/li>\n<li><strong>Improvement.<\/strong> Add new theme watercolor<\/li>\n<\/ul>\n\n<h4>1.7.1<\/h4>\n\n<ul>\n<li><strong>Fix.<\/strong> After update a post remove number attributes, thanks to @davinian @jeroensmeets<\/li>\n<\/ul>\n\n<h4>1.7.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Allow newlines in tooltip text, thanks to @daviewales<\/li>\n<li><strong>Fix.<\/strong> Define variables and prevent php notices, thanks to @davinian @bjoluc<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li><strong>Security.<\/strong> Escape tooltip content<\/li>\n<li><strong>Improvement.<\/strong> Update version of library Leaflet map<\/li>\n<li><strong>Improvement.<\/strong> Add assets library Leaflet map<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Conditionally Load frontend assets<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li><strong>Improvement.<\/strong> Improve the theme selector<\/li>\n<li><strong>Improvement.<\/strong> Update version of library Leaflet map<\/li>\n<li><strong>Improvement.<\/strong> Disabled zoom by default<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li><strong>Bug Fix.<\/strong> No allow align left &amp; right<\/li>\n<li><strong>Improvement.<\/strong> Resize behaviour<\/li>\n<li><strong>Improvement.<\/strong> Support themes with transtions pages<\/li>\n<li><strong>Improvement.<\/strong> Option disable scroll zoom<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li><strong>Bug Fix.<\/strong> Grayscale theme does not work<\/li>\n<li><strong>Bug Fix.<\/strong> The search engine appears over the block\u00b4s toolbar<\/li>\n<li><strong>Improvement.<\/strong> Allow alignments<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Initial release on WordPress.org<\/li>\n<\/ul>","raw_excerpt":"Embed maps in content without needing to include an API key.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/95353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=95353"}],"author":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/goiblas"}],"wp:attachment":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=95353"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=95353"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=95353"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=95353"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=95353"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=95353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}