Overview
PinDrop adds two Divi 5 modules, PinDrop Map and PinDrop Store Locator, that show your locations on an OpenStreetMap map. You add each location once in WordPress admin, and every map on the site uses it.
The maps use OpenStreetMap and the Leaflet map library, so there is no API key, account or monthly fee.
Requirements
| WordPress | 6.2 or newer (tested up to 7.1) |
|---|---|
| PHP | 7.4 or newer |
| Divi | Divi 5. The modules are built for the Divi 5 Visual Builder. |
| API key | None needed. |
| https | Only needed for the “Use my location” button. Everything else works on http too. |
Installation
- In your WordPress admin, go to Plugins → Add New.
- Click Upload Plugin at the top of the page.
- Click Choose File and select the
pindrop.zipfile you downloaded. - Click Install Now, then Activate Plugin.
- Go to Divi Solution → PinDrop and click Add Location.
Where to find it: PinDrop lives under the shared Divi Solution menu in wp-admin, next to our other plugins. The page has two tabs: Locations and Categories.
Quick start
- Go to Divi Solution → PinDrop and click Add Location.
- Type a name and the address, then click Find on map from address. Drag the pin if it needs fine-tuning.
- Click Save Changes. Add a few more locations the same way.
- Open a page in the Divi Builder and add a PinDrop Store Locator or PinDrop Map module.
- Your locations show up in the builder preview straight away. Adjust the settings and save the page.
Adding locations
Go to Divi Solution → PinDrop. The Locations tab lists every location with its categories, address, map pin and status. Click Add Location for a new one, or Edit on a row to change it.
Location fields
| Field | What it does |
|---|---|
| Name | Shown as the title in the popup and the results list, e.g. “Downtown Store”. |
| Show on maps | Turn off to keep the location saved but hidden from every map. |
| Short description | Optional plain text shown in the map popup and the locator list. |
| Photo | Optional image shown in the popup. |
| Categories | Tick one or more categories. Modules can show only one category. |
| Address | Street address, address line 2, city, state / region, postcode / ZIP and country. |
| Map pin | Latitude and longitude. Fill them with Find on map from address, by clicking the map, or by dragging the pin. |
| Contact | Phone, email and website. They show as links in the popup. |
| Opening hours | An opening and closing time for each weekday, or Closed, plus an optional note such as “Closed on public holidays”. |
Locations without a pin are not shown on maps. The list marks them “No pin yet”. Open the location and click Find on map from address, or place the pin by hand.
Opening hours and “Open now”
Tick Show opening hours and the “Open now” badge, then set the times for each day. The popup and the results list show an Open now or Closed now badge. Times use your site’s time zone from Settings → General in WordPress, not the visitor’s clock.
Deleting a location
Click Delete in the list, or Delete this location in the editor. This deletes it permanently. To hide a location for a while, turn off Show on maps instead.
Categories
Categories group your locations, for example Stores and Outlets. Open the Categories tab to add, rename or delete them.
- A module can show All locations or only one category (setting Show locations from).
- The Store Locator shows a category filter for visitors when the locations use two or more categories.
- Renaming a category keeps its slug, so modules already filtered by that category keep working.
The two modules
| Module | Use it for |
|---|---|
| PinDrop Map | A map of your locations with pins and popups, e.g. on a contact or “Our venues” page. |
| PinDrop Store Locator | A search bar, a results list sorted by distance and a map, so visitors can find the nearest location. |
Both modules have a live preview in the Divi 5 Visual Builder, and the usual Divi Design and Advanced tabs (spacing, border, box shadow, CSS classes, conditions, visibility and more).
Store Locator for visitors
- Visitors type a city, address or postcode and click Search. Results are sorted by distance.
- They can change the Distance radius or pick Any distance.
- If nothing is within the radius, the closest locations are shown instead.
- Use my location searches around the visitor’s position, after they allow it in the browser.
- Show on map in the list opens that location’s popup on the map.
Map settings
These settings are on the Content tab of both modules.
Locations
| Setting | What it does | Default |
|---|---|---|
| Show locations from | All locations, or only those in one category. | All locations |
Map
| Setting | What it does | Default |
|---|---|---|
| Map style | Standard, Grey, Dark, Humanitarian, Topographic or Custom tile URL. See Map styles. | Standard |
| Custom tile URL | Shown for Custom tile URL. An https URL with {z}, {x} and {y}. | Empty |
| Map height | A number with px, vh, rem or em, e.g. 450px or 60vh. | 450px |
| Zoom to fit all pins | Frames every pin automatically. Turn off to use a fixed zoom level. | On |
| Zoom level | 1 (world) to 19 (street). Used for a single pin and when fitting is off. | 12 |
| Zoom with mouse wheel | Off keeps the page scrolling smoothly past the map. | Off |
| Group nearby pins | Combines close pins into one numbered bubble. | On |
Pins & Popup
| Setting | What it does | Default |
|---|---|---|
| Accent & pin color | Used for pins, groups, buttons and links. | #7c5cff |
| Show featured image | The location’s photo in the popup. | On |
| Show address | The address in the popup. | On |
| Show phone | The phone number in the popup. | On |
| Show opening hours | The hours table and the “Open now” badge, for locations with hours. | On |
| Directions link | Google Maps, Apple Maps, OpenStreetMap or Hide. | Google Maps |
Store Locator settings
The PinDrop Store Locator has an extra Search group, above the map settings.
| Setting | What it does | Default |
|---|---|---|
| Results list position | Left of the map, right of the map, or below it. On phones the list always sits below the map. | Left of the map |
| Search placeholder | The hint text in the search box. | Enter a city, address or postcode |
| Distance unit | Kilometers or miles. | Kilometers |
| Default search radius | 5, 10, 25, 50, 100 or 250. Visitors can change it in the search bar. | 25 |
| Maximum results | 5, 10, 20, 50 or 100. | 20 |
| Category filter | A category menu for visitors, shown when the locations use two or more categories. | On |
| “Use my location” button | Asks the visitor’s browser for their position. Needs an https site. | On |
Map styles
| Style | Map images from |
|---|---|
| Standard | OpenStreetMap |
| Grey | OpenStreetMap, shown in greyscale |
| Dark | OpenStreetMap, shown dark |
| Humanitarian | OpenStreetMap France |
| Topographic | OpenTopoMap |
| Custom tile URL | Any tile provider you choose, e.g. MapTiler or Stadia Maps with your own key |
Busy site? The public OpenStreetMap tile and search servers are run by volunteers and are meant for light use. For a high-traffic site, choose Custom tile URL and use a tile provider with your own key. If the custom URL is empty or isn’t a valid https URL with {z}, {x} and {y}, the Standard style is used.
Privacy & outside services
- Map pages load map images (tiles) from OpenStreetMap (Standard, Grey and Dark), OpenStreetMap France (Humanitarian) or OpenTopoMap (Topographic), or from your custom tile provider.
- When a visitor searches the Store Locator, the search text is sent from their browser to the OpenStreetMap Nominatim service to find the place.
- The Find on map from address button in admin also uses Nominatim, through your own site. Results are cached for a week.
- Use my location only runs when the visitor clicks it and allows it. Their position is used in the browser to sort the results.
Please mention these services in your privacy policy. Their policies: OpenStreetMap tile usage, Nominatim usage and OpenTopoMap.
For developers
- Data: locations are the
ds_pd_locationpost type and categories theds_pd_categorytaxonomy. - Limit: there is no fixed limit on locations. Maps show up to 2,000 published locations.
- REST API: the admin page saves through the
ds-pd/v1REST namespace. Security plugins that block the REST API for logged-in users must allow it. - No JavaScript: visitors without JavaScript see a plain list of the locations.
- Translations: the text domain is
pindrop. - Libraries: Leaflet 1.9.4 and Leaflet.markercluster 1.5.3 are bundled with the plugin, so nothing loads from a CDN.
Troubleshooting
A location doesn’t show on the map
- Check that it has a map pin. The list shows “No pin yet” when it doesn’t.
- Check that Show on maps is on (status “Live”).
- Check the module’s Show locations from setting.
- Clear your page cache.
The builder says there are no locations
Add locations under Divi Solution → PinDrop, then reload the builder.
“Find on map from address” finds nothing
Try a shorter address, e.g. only the street, city and country, or place the pin by clicking the map.
Visitor search says “We could not find that place”
The search works best with a city name or postcode. Very short or misspelled text may not match a place.
“Use my location” doesn’t work
Browsers only share a visitor’s position on https sites, and only after the visitor allows it.
The map is grey or tiles are missing
Check the custom tile URL, if you use one. Some ad blockers and strict content security policies block map tiles; allow the tile server’s address.
Support
PinDrop is coming soon to the Divi Marketplace. Until then, ask us anything through our contact form or email [email protected]. See the PinDrop page for screenshots and the FAQ.