Map Block Leaflet


The Map Block Leaflet is designed to work with the Gutenberg editor. 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.


This plugin is open source software, and you may actively contribute on Github.

Installation & Setup

Note: This plugin requires WordPress 5 or the Gutenberg plugin active.

  1. Upload ‘leaflet-map-block’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add new block, find it in the category embed.
  4. Search a location and change the option until you get the disdained look.
  5. Publish and enjoy


  • Simple map within the editor
  • Realistic theme map


This plugin provides 2 blocks.

  • Map Block Leaflet Allows embed maps in your contents, good alternative to Google Maps without the need for api key
  • Map Leaflet multimarker Easy way to inside maps in your contents


2024 ལོའི་ཟླ 6 ཚེས 10 ཉིན།
Simple to use and supported. Great plugin to use on your website 💪 when displaying maps with custom multiple markers. Thank you.
2023 ལོའི་ཟླ 2 ཚེས 13 ཉིན།
I detected a problem, I communicated it to the author and in a few days he fixed it. Thank you for creating this plugin. Grateful for your time and your wonderful creation.
2020 ལོའི་ཟླ 3 ཚེས 10 ཉིན།
Works great, looks great; highly recommended. I wanted to avoid gutenburg in my own plugin, and this plugin seems to work perfectly. – Author of
2019 ལོའི་ཟླ 10 ཚེས 5 ཉིན།
Very useful, great alternative to google map – quick and simple to use.
གདེང་འཇོག 8 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Map Block Leaflet” is open source software. The following people have contributed to this plugin.


“Map Block Leaflet” has been translated into 3 locales. Thank you to the translators for their contributions.

ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Map Block Leaflet” ཡིག་སྒྱུར་བྱོས།

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • fix. Multiple markers html escape


  • feat. Enable custom marker icon, thanks to @danidub @glycymeris
  • Improvement. Update version of library Leaflet map


  • Fix. Escape tooltip’s content, thanks to Jordi Fita


  • Fix. Single marker wait for dom ready for initialize map
  • Improvement. Multimarker content marker is not required, thanks to @josivela
  • Improvement. Improve the organization of markers using labels, thanks to @josivela


  • Improvement. Rewrite using block.json
  • Fix. Address Search does not work, thanks to @davask42
  • Fix. Multimarker add new markers does not work, thanks to @josivela
  • Fix. Replace black and white theme
  • Feat. Multimarker allow modification latitude and longitude
  • Improvement. Update version of library Leaflet map
  • Improvement. Add WordPress tested up version to 6.1


  • Improvement. Add WordPress tested up version to 5.9


  • Improvement. Invalidate size on resize container, thanks to @liqueurdetoile


  • Improvement. Remove assets when it isn’t in page, thanks to @PatrickFaramaz


  • Fix. Multimarker frontend, thanks to @baagi510


  • Improvement. Resize user experience


  • fix. Increase tested WordPress version


  • Feat. Multimarker block
  • Improvement. Refactor to functional component
  • Improvement. Use wp-scripts to compile code


  • fix. Remove sourceMap warning, when used in Chrome Devtools, thanks to @thomasprice61
  • fix. Replace wikimedia tiles by Stadia OSMBright


  • fix. Fix center when it is inside columns, thanks to @aribet


  • fix. Enqueue lib assets from register_block_type fix use blocks outside the content, thanks to @youdaman


  • Improvement. Update version of library Leaflet map


  • Improvement. Change automated deploy to github actions


  • fix. Update version files


  • Improvement. Support custom theme provider, thanks to @jeroensmeets
  • Improvement. Add new theme watercolor


  • Fix. After update a post remove number attributes, thanks to @davinian @jeroensmeets


  • Improvement. Allow newlines in tooltip text, thanks to @daviewales
  • Fix. Define variables and prevent php notices, thanks to @davinian @bjoluc


  • Security. Escape tooltip content
  • Improvement. Update version of library Leaflet map
  • Improvement. Add assets library Leaflet map


  • Improvement. Conditionally Load frontend assets


  • Improvement. Improve the theme selector
  • Improvement. Update version of library Leaflet map
  • Improvement. Disabled zoom by default


  • Bug Fix. No allow align left & right
  • Improvement. Resize behaviour
  • Improvement. Support themes with transtions pages
  • Improvement. Option disable scroll zoom


  • Bug Fix. Grayscale theme does not work
  • Bug Fix. The search engine appears over the block´s toolbar
  • Improvement. Allow alignments


  • Initial release on