OSM Map Widget for Elementor
v1.6.0garbowza · 2020年9月8日 上架
Free Elementor map widget powered by OpenStreetMap: markers, shapes, routes along roads, markers from posts and 27 map styles.
- 正在使用
- 8,000+
- 评分
- 4.5 / 5
- 累计下载
- 8.3 万
- 最近更新
- 2026年11月19日
截图








A free Elementor map widget built on OpenStreetMap. Add markers, shapes and routes, pull locations from your posts, and pick from 27 map styles. Requires the Elementor plugin, version 3.30 or newer.
Features
- Markers with a title, description (HTML allowed), button and popup or tooltip. Use the default pin, a Font Awesome icon or your own image, at any size.
- Shapes: draw rectangles, circles, polygons and lines, or paste GeoJSON. Each shape has its own border and fill colors and the same popups as markers.
- Routes along roads: enter a start, an end and optional stops to draw the driving, walking or cycling route, with distance and time in the popup. Needs a free Geoapify API key.
- Markers from posts: show a marker for each published post of a chosen type, with coordinates from custom fields such as ACF fields.
- Map Center: center on the markers, zoom to fit all of them, or set your own coordinates.
- Map styles: 27 tile styles from OpenStreetMap, Stadia Maps and Geoapify, or your own tile server.
- Lightweight: the map’s scripts and styles load only on pages that use the widget.
This plugin is open source. To contribute:
1. Open an issue here
2. Submit a pull request with well-written code that implements the feature.
Usage
- Make sure the Elementor plugin is installed.
- Optionally, add API keys on the plugin’s settings page:
- Google Maps API Key (autocompletes marker coordinates in the editor. How to get one)
- Mapbox Access Token (used with the Geoapify key for the Geoapify map styles, which are drawn with Mapbox GL. How to get one)
- Geoapify API Key (for Geoapify tile styles and for routes along roads. How to get one)
- Add the OSM Map widget to an Elementor page:
- Markers: add items to the marker list. Each item’s Type is Point, Rectangle, Circle, Polygon, Line, GeoJSON or Route. A Point needs only its Coordinates; the other types ask for their own corners, points or stops.
- Marker Source: set it to Posts to build the markers from your posts instead.
- Map Center: choose Midpoint of markers, Fit all markers or Custom coordinates, and set the zoom level per device.
- Style: change the tiles and the marker, shape, popup and button styles from the Style tab.
External services
This plugin loads map tiles and map libraries from third-party services in the visitor’s browser, and, for routes, contacts Geoapify from your server. No data is sent to the plugin authors.
OpenStreetMap tile servers (tile.openstreetmap.org)
Used by default to display the map. Every map view requests tiles from this service, which receives the visitor’s IP address and the tiles requested. Tile usage policy and privacy policy.
Stadia Maps (tiles.stadiamaps.com)
Used only when a Stadia tile is selected in the widget’s Style tab. The visitor’s IP address and the tiles requested are sent to Stadia Maps. Terms of service and privacy policy.
Geoapify (maps.geoapify.com)
Used only when a Geoapify tile is selected. The Geoapify API key saved in the plugin settings and the visitor’s tile requests (including IP address) are sent to Geoapify. Terms and conditions and privacy policy.
Geoapify Routing API (api.geoapify.com)
Used only when a map contains a Route item and a Geoapify API key is saved in the plugin settings. Your WordPress server, not the visitor’s browser, sends the route’s start, stop and end coordinates, the travel mode and the API key to Geoapify when the route is first shown or changed, again when the cached route expires (after 7 days), and in the editor preview. A failed request is retried after 10 minutes, or after a day when the error cannot fix itself, such as a rejected key. Visitors’ IP addresses are not sent. Terms and conditions and privacy policy.
Mapbox GL JS
Geoapify vector styles are rendered with the bundled mapbox-gl library, which is given the Mapbox access token saved in the plugin settings. The library may contact Mapbox services when an access token is supplied. Terms of service and privacy policy.
Google Maps JavaScript API (maps.googleapis.com)
Used only in the Elementor editor, and only when a Google Maps API key is saved in the plugin settings, to autocomplete marker coordinates. The key and the location text typed by the editor are sent to Google. Visitors of the published site are not affected. Google no longer enables the legacy Places Autocomplete on projects created recently, so coordinates may need to be typed by hand. Terms of service and privacy policy.
Custom tile server
When a custom map tile URL is configured in the plugin settings, the visitor’s browser requests tiles from that server, and its terms and privacy policy apply.