Title: Map Block Leaflet
Author: goiblas
Published: <strong>December 16, 2018</strong>
Last modified: May 28, 2025

---

Search plugins

![](https://ps.w.org/map-block-leaflet/assets/banner-772x250.png?rev=3066247)

![](https://ps.w.org/map-block-leaflet/assets/icon-128x128.png?rev=3066247)

# Map Block Leaflet

 By [goiblas](https://profiles.wordpress.org/goiblas/)

[Download](https://downloads.wordpress.org/plugin/map-block-leaflet.3.2.2.zip)

 * [Details](https://srd.wordpress.org/plugins/map-block-leaflet/#description)
 * [Reviews](https://srd.wordpress.org/plugins/map-block-leaflet/#reviews)
 * [Development](https://srd.wordpress.org/plugins/map-block-leaflet/#developers)

 [Support](https://wordpress.org/support/plugin/map-block-leaflet/)

## Description

The Map Block Leaflet is designed to work with the [Gutenberg editor](https://wordpress.org/plugins/gutenberg/).
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.

**Contribute:**

This plugin is open source software, and you may actively contribute on [Github](https://github.com/goiblas/leaft-map-block).

### 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

## Screenshots

 * [[
 * Simple map within the editor
 * [[
 * Realistic theme map

## Blocks

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

## Reviews

![](https://secure.gravatar.com/avatar/9c8404d4d84aced2a043b204248ede184f51e01aad98fb7330e3da207d4d45df?
s=60&d=retro&r=g)

### 󠀁[Super easy to use and great support](https://wordpress.org/support/topic/super-easy-to-use-and-great-support-2/)󠁿

 [Daniel P.](https://profiles.wordpress.org/danidub/) June 10, 2024

Simple to use and supported. Great plugin to use on your website 💪 when displaying
maps with custom multiple markers. Thank you.

![](https://secure.gravatar.com/avatar/fa37a2a5cbc4f79301931083b338c374b9373361e25aa958f81c39b6b29d0aeb?
s=60&d=retro&r=g)

### 󠀁[A cool plugin with great support](https://wordpress.org/support/topic/a-cool-plugin-with-great-support/)󠁿

 [jivelazquez](https://profiles.wordpress.org/josivela/) February 13, 2023

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.

![](https://secure.gravatar.com/avatar/6640cbda4f3cfd20dcf46734a63166f0d851afc9750427f3a3328bf91b640df4?
s=60&d=retro&r=g)

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-9338/)󠁿

 [Andros Fenollosa Hurtado](https://profiles.wordpress.org/androsfenollosa/) March
24, 2022

Fantastically well adapted, beautiful and easy to use.

![](https://secure.gravatar.com/avatar/6c72bb539d148a99d0b393f0955af94aea97aba0c7b8663493279dfe12e22b98?
s=60&d=retro&r=g)

### 󠀁[Útil, sencillo y buen soporte](https://wordpress.org/support/topic/util-sencillo-y-buen-soporte/)󠁿

 [Andre Ribet](https://profiles.wordpress.org/aribet/) January 27, 2021

Fácil de usar, con los parámetros justos y soporte excelente. Gracias.

![](https://secure.gravatar.com/avatar/fe03c79b9e89680f04e9960307e00453558b3c9d435f97b68287171fb188ea51?
s=60&d=retro&r=g)

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-2385/)󠁿

 [bozdoz](https://profiles.wordpress.org/bozdoz/) March 10, 2020

Works great, looks great; highly recommended. I wanted to avoid gutenburg in my 
own plugin, and this plugin seems to work perfectly. – Author of https://wordpress.
org/plugins/leaflet-map/

![](https://secure.gravatar.com/avatar/a30d190b7ad14f312a3716331c2efb560b0139c7368a0621bf24613a5730551f?
s=60&d=retro&r=g)

### 󠀁[Great Map Block](https://wordpress.org/support/topic/great-map-block/)󠁿

 [davinian](https://profiles.wordpress.org/davinian/) October 5, 2019

Very useful, great alternative to google map – quick and simple to use.

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/)

## Contributors & Developers

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

Contributors

 *   [ goiblas ](https://profiles.wordpress.org/goiblas/)

“Map Block Leaflet” has been translated into 3 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/map-block-leaflet/contributors)
for their contributions.

[Translate “Map Block Leaflet” into your language.](https://translate.wordpress.org/projects/wp-plugins/map-block-leaflet)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/map-block-leaflet/),
check out the [SVN repository](https://plugins.svn.wordpress.org/map-block-leaflet/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/map-block-leaflet/)
by [RSS](https://plugins.trac.wordpress.org/log/map-block-leaflet/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.2.2

 * **Security.** Escape URLs using esc_url for map and marker images, thanks to 
   Peter Thaleikis.

#### 3.2.1

 * **fix.** Multiple markers html escape

#### 3.2.0

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

#### 3.1.1

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

#### 3.1.0

 * **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

#### 3.0.0

 * **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

#### 2.2.1

 * **Improvement.** Add WordPress tested up version to 5.9

#### 2.2.0

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

#### 2.1.0

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

#### 2.0.3

 * **Fix.** Multimarker frontend, thanks to @baagi510

#### 2.0.2

 * **Improvement.** Resize user experience

#### 2.0.1

 * **fix.** Increase tested WordPress version

#### 2.0.0

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

#### 1.8.7

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

#### 1.8.6

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

#### 1.8.5

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

#### 1.8.4

 * **Improvement.** Update version of library Leaflet map

#### 1.8.3

 * **Improvement.** Change automated deploy to github actions

#### 1.8.1

 * **fix.** Update version files

#### 1.8.0

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

#### 1.7.1

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

#### 1.7.0

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

#### 1.6.0

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

#### 1.5.0

 * **Improvement.** Conditionally Load frontend assets

#### 1.4.0

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

#### 1.3.0

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

#### 1.2.0

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

#### 1.1.0

 * Initial release on WordPress.org

## Meta

 *  Version **3.2.2**
 *  Last updated **10 months ago**
 *  Active installations **700+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/map-block-leaflet/), [English (US)](https://wordpress.org/plugins/map-block-leaflet/),
   [German](https://de.wordpress.org/plugins/map-block-leaflet/), and [Spanish (Spain)](https://es.wordpress.org/plugins/map-block-leaflet/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/map-block-leaflet)
 * Tags
 * [blocks](https://srd.wordpress.org/plugins/tags/blocks/)[editor](https://srd.wordpress.org/plugins/tags/editor/)
   [gutenberg](https://srd.wordpress.org/plugins/tags/gutenberg/)[leaflet](https://srd.wordpress.org/plugins/tags/leaflet/)
   [map](https://srd.wordpress.org/plugins/tags/map/)
 *  [Advanced View](https://srd.wordpress.org/plugins/map-block-leaflet/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  9 5-star reviews     ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/map-block-leaflet/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/map-block-leaflet/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/map-block-leaflet/reviews/)

## Contributors

 *   [ goiblas ](https://profiles.wordpress.org/goiblas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/map-block-leaflet/)