Plugin

Easy Store Map Plugin

Easy Store Map displays a map of your stores, branches or locations on your WordPress website. It uses OpenStreetMap, so it's free and needs no sign-up or API key. The plugin was built with the help of AI.

Customer
Everyone
Role
Development
Technology
PHP, CSS, JavaScript, AI Claude
Website
github.com/tuan026499/EasyStoreMap

Background

Businesses with several locations often need a “Store locator” page on their WordPress site, for example retail chains, companies with multiple branches or service centers. On that page, customers see every location on one map, find the branch nearest to them and open directions.

The usual approach is the Google Maps API or a paid store locator plugin. Both need an API key and a billing account, and often come with lots of features a small or medium website never uses. Easy Store Map was built to solve this in a lightweight, free and open-source way (GPLv2).

Challenges

  • Cost and technical barriers: Commercial maps need an API key and a billing account. Non-technical site owners often get stuck right at this step.
  • Finding coordinates: Admins know the address but not the latitude and longitude. Typing them by hand is error-prone, and pins end up in the wrong place.
  • Scattered data: Many solutions store locations in an external service or a separate file, instead of managing them like normal posts and pages in WordPress.
  • Vietnamese search: A visitor typing “ha noi” should still find “Hà Nội”. Ordinary search is accent-sensitive and misses results.
  • Flexible display: The map has to work in page builders, widgets and posts, work well on mobile, and allow a different height on each page.
  • Security: Data entered by admins (formatted descriptions, website links) could be used to inject malicious code if it isn’t filtered properly when saved and displayed.

Solution

A map with no API key

  • Uses Leaflet 1.9.4, bundled with the plugin so it doesn’t depend on a CDN, together with OpenStreetMap tiles.
  • High-traffic sites can switch to another tile provider right from the Settings page.
  • The directions button is a plain Google Maps link, so there are no API calls and no fees.

Manage locations inside WordPress

  • Each location is a custom post type (esm_location) with a name, featured image, address, coordinates, phone, website, description and display order.
  • One click fetches the coordinates from the address via Nominatim. The admin can then drag the marker or click on the map to fine-tune it.
  • The map only shows published locations that have coordinates.

The visitor experience

  • Add the map with a single shortcode, [easy_store_map], and set a per-page height with height="450" (200–2000 px).
  • The location list can sit on the left, on the right or be hidden, and can be collapsed.
  • Search ignores Vietnamese accents.
  • Popups show the image, details and a directions link. There’s a fullscreen button and a mobile-friendly layout.

Customization and security

  • Settings let you choose the initial view (or auto-fit all locations), the default height, the accent color and the tile provider.
  • Nonces and capabilities are checked. Data is sanitized on save and escaped on output, and descriptions only allow a small set of safe HTML tags.
  • When the plugin is uninstalled, data is only deleted if the admin has turned that option on.

Results

WordPress sites get a full store locator (map, list, search and directions) with no API costs, the data lives in the site’s own database, and non-technical users can manage it themselves.

Viethastone
Next project Viet Ha Stone Website Project Viet Ha Stone (VietHastone) is a brand of Gia Khanh Production and Import-Export Co., Ltd., supplying natural stone, engineered stone and technical flooring for bathrooms, kitchens, gardens, interiors and exteriors.

Bạn cũng cần một website như thế này?

Đặt làm riêng, hoặc chọn mẫu có sẵn rồi mình chỉnh theo thương hiệu của bạn.