Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all…
About OSM Map Widget for Elementor
The Elementor Map Widget is a free plugin that allows you to add a map to your Elementor pages. It comes with features like adding multiple markers and customizing the look and feel of the map. You can also contribute to the plugin's development on GitHub.Screenshots






Changelog
1.6.0
- NEW: Map Center setting. Keep “Midpoint of markers”, choose “Fit all markers” to zoom and center the map so every visible marker fits (Zoom Level becomes the closest it zooms in), or enter custom center coordinates. Existing maps keep their current center. Thanks to @skonebeke, @herondino and @giamox.
- NEW: Shapes as markers. Set a marker’s Type to Rectangle (two opposite corners), Circle (center and radius in meters), Polygon or Line (one “lat, long” point per line), or paste GeoJSON; shapes have their own border and fill colors and the same popups, tooltips and buttons as markers. Thanks to @ms-lepol.
- NEW: Routes. Set a marker’s Type to Route and enter a start, an end and optional stops to draw the driving, walking or cycling route along roads and paths, with optional start and end markers and distance and time in the popup. Routes need a Geoapify API key in the plugin settings; your server fetches each route once and caches it. Without a key the route is drawn as a dashed straight line. Maps with road routes credit Geoapify. Thanks to @Phoenix-Ignited-Tech.
- NEW: Markers from posts. Set Marker Source to Posts to show a marker for each published post of a chosen type, using coordinates from custom fields such as ACF fields. Thanks to @samben28 and @scatata.
- IMPROVEMENT: The map’s scripts and styles (Leaflet, Mapbox GL, Font Awesome) load only on pages with an OSM Map widget, and the plugin no longer adds jQuery to every page. Sites that need the assets everywhere can return true from the
osm_map_elementor_load_assets_on_every_pagefilter. Thanks to @ausdemnichts. - IMPROVEMENT: Font Awesome markers have an accessible name for screen readers and keyboard users, taken from the marker title. Thanks to @letiziam2024.
1.5.1
- FIX: HTML in a marker’s Description shows as formatting again instead of as text. Descriptions allow the same HTML as post content, so scripts, event handlers and javascript: links are removed. Text inside angle brackets, such as an email address in
<>, is treated as markup and removed, so write<for a literal<. Thanks to @fastnormal and @tdebaillon. - SECURITY: The map’s script now receives only the zoom levels and breakpoints it uses, instead of every widget setting, so a marker’s unfiltered Description no longer appears in the page source.
- FIX: Maps that start hidden, such as in Elementor tabs, accordions or popups, now load their tiles and center correctly when they appear instead of staying grey. Thanks to @blackspiral and @designstuuv.
- FIX: The map fills the available width in a row (flexbox) container instead of collapsing to zero width. A width set in the widget’s Advanced settings still takes priority. Thanks to @ag13.
- IMPROVEMENT: OSM Carto tiles load from tile.openstreetmap.org, as OpenStreetMap recommends, instead of the old a/b/c subdomains.
1.5.0
- NEW: Marker Size setting for the Default and Font Awesome marker icons. It scales the whole marker from 25% to 200%, and popups and tooltips follow the new size. Existing maps keep their current marker size. The Font Awesome Icon Size setting now scales together with the pin. Thanks to @xanhcloud24.
1.4.1
- IMPROVEMENT: Links that open in a new tab, such as map attributions and settings page links, now use rel=”noopener noreferrer”. The marker button uses rel=”noopener” when it opens a new tab. Thanks to @frapsd.
1.4.0
- COMPAT: Tested with WordPress 7.1 and Elementor 4.4.
- REQUIREMENTS: WordPress 6.8+, PHP 7.4+ and Elementor 3.30+.
- FIX: Fatal error on PHP 8 when a marker has invalid coordinates. Such markers are now skipped.
- FIX: Tablet and mobile zoom levels now apply.
- FIX: Saving the settings page redirects correctly and shows the confirmation notice.
- SECURITY: Marker button links only allow http, https, mailto and tel URLs, and the link target is restricted to the same or a new tab.
- SECURITY: Marker titles in the Elementor panel are escaped, and tile and API key settings are encoded for the script context.
- IMPROVEMENT: Updated Font Awesome to 6.7.2 and mapbox-gl to 1.13.3, and removed unused library files to reduce the plugin size.
- IMPROVEMENT: Map scripts are added with WordPress script APIs.
- IMPROVEMENT: The text domain is now osm-map-elementor, so existing translations of the plugin can be loaded. Several notices were reworded and need re-translating.
1.3.1
- SECURITY: Fixed stored XSS vulnerability in Button URL field.
- SECURITY: Added proper input sanitization and output escaping for all user inputs.
- SECURITY: Fixed Open Redirect vulnerability in admin settings.
- SECURITY: Added CSRF protection with nonce verification.
- SECURITY: Fixed unescaped output in JavaScript contexts.
- SECURITY: Added comprehensive array key validation to prevent PHP warnings.
- IMPROVEMENT: Added proper version parameters to all enqueued scripts and styles.
- IMPROVEMENT: Set scripts to load in footer for better performance.
- IMPROVEMENT: Enhanced error handling and defensive programming practices.
- IMPROVEMENT: Updated tested WordPress version to 6.6.
- BUGFIX: Fixed undefined array key warnings for zoom and height settings.
- BUGFIX: Fixed null value access warnings in marker processing.
- BUGFIX: Improved form action URL handling with proper fallbacks.
For older versions, see the full changelog.