Sweet Map adds a beautiful interactive map to your WordPress site β with a visual marker editor, address search, and rich popups. No coding required.
Built on Leaflet.js β the leading open-source map library trusted by millions of websites worldwide.
Unlike Google Maps or Mapbox, Sweet Map works completely out of the box:
Just install, activate, and start adding markers.
[sweet_map] or [sweet_map id="offices"]Option 1 β Gutenberg block:
Click + in the page editor search βSweet Mapβ select the block pick a map from the sidebar. Done.
Option 2 β Shortcode:
[sweet_map]
[sweet_map id=βofficesβ]
This plugin uses open, free services to display maps and search addresses:
Map tiles load when the map is displayed on the page. Address search sends a query only when the visitor types in the search box. The plugin does not store any personal data.
The compiled JavaScript (assets/dist/index.js) is built from the Vue 3 source code included in the src-vue/ directory of this plugin.
To build from source:
The entry point is src-vue/src/main.js. The build tool is Vite with Vue 3 and TypeScript.