Linux 软件免费装
Banner图

SoftIcon Store Locator – Store Finder Map, No API Key

开发者 softiconai
更新时间 2026年11月13日 17:53
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

block map store finder store locator dealer locator

下载

1.0.0 1.0.1

详情介绍:

SoftIcon Store Locator adds a Store Locator block to the block editor. Add your shops, branches or dealers right in the block, or import them from a CSV file, and the page shows them as a list with a map. Visitors type their town or postcode, or press Near me, and see the nearest stores first. https://www.youtube.com/watch?v=KFmGVqEHBQo New to it? Watch Every setting, explained, a 2-minute video tutorial. Privacy The plugin sets no cookies and stores nothing about visitors. Your stores are saved in the block, inside your post. The map and the place search use OpenStreetMap services, described under External services below. With Load the map on click turned on, visitors see a short note and a Show map button first, and nothing is loaded from the map server before they press it. Near me uses the location the visitor's browser gives; it is used only in the browser and is never sent anywhere. External services This plugin connects to these outside services. It sends nothing else, and nothing at all when a page has no Store Locator block. OpenStreetMap map tiles (tile.openstreetmap.org), run by the OpenStreetMap Foundation. The map is made of small images (tiles) that the visitor's browser loads from this server when a page shows the map, and in the block editor. The server receives the visitor's IP address, their browser's user agent and the address of the page (the Referer), as for any image from another website. With Load the map on click, this happens only after the visitor presses Show map. You can set another tile server in the block's Map settings. Tile usage policy: https://operations.osmfoundation.org/policies/tiles/ – Terms of use: https://osmfoundation.org/wiki/Terms_of_Use – Privacy policy: https://osmfoundation.org/wiki/Privacy_Policy Nominatim place search (nominatim.openstreetmap.org), run by the OpenStreetMap Foundation. It turns an address into a place on the map. It is asked only when a person presses a button, at most once a second: Third-party libraries The unminified source of this plugin is in the src folder, with package.json and webpack.config.js. Build it with npm install and npm run build.

安装:

  1. Install the plugin from Plugins → Add New, or upload the zip.
  2. Activate it.
  3. In the block editor, add the Store Locator block.
  4. Press Add store, or Import CSV to bring many stores at once.

屏幕截图:

  • Searching a town: the stores sorted by distance, with the place on the map.
  • Editing a store in the block: find the address on the map and drag the pin.
  • Importing stores from a CSV file, with the columns matched for you.
  • Layout, colors and your own marker.
  • On a phone: the search, the map and the list below it.

常见问题:

Do I need a Google Maps API key?

No. The map uses OpenStreetMap, which needs no key and no account.

Is there a video tutorial?

Yes: Every setting, explained (2:06). Jump to a part:

The empty block, the CSV import and the Help panel in the block's settings link to it too.

Where do I add my stores?

In the block itself. Select the block and open the Stores panel in the sidebar: add a store, fill in its address, and press Find on map. You can also click on the map to place a store, or drag its orange pin.

How should my CSV file look?

One store per row, with the column names in the first row. The block recognises common names such as name, address, city, postcode (or zip), country, phone, email, website, hours, lat (or latitude) and lng (or lon, longitude), and you can match any other column yourself. Commas or semicolons both work. Save the sheet as "CSV UTF-8" so accents stay right. If the file has no coordinates, press Find the places of … stores after the import. See an import in the video.

A store's pin is in the wrong place

Place search is free but not perfect, especially for new streets or some countries. Open the store and drag its orange pin to the right spot, or type the latitude and longitude. Stores found without their postcode are marked in the list so you can check them. See it in the video.

How many stores can one block hold?

Up to 500. For more, add a second Store Locator block, for example one per country.

Is it GDPR friendly?

It sets no cookies and tracks nothing. Turn on Load the map on click in the Map settings so nothing is loaded from OpenStreetMap until the visitor asks, and mention OpenStreetMap in your privacy policy. You can also turn off the place search for visitors. See it in the video.

My site has a lot of visitors

OpenStreetMap's own tile server is meant for light use. For a busy site, set the address of another tile server in the block's Map settings (many providers offer free plans), with the credit they ask for.

Does it work with caching and optimization plugins?

Yes. The block uses no AJAX calls, and it finds its own files even when an optimization plugin combines or moves its scripts.

Can I use my own marker?

Yes: pick a picture (your logo or an icon) in Colors and marker. Or keep the pin and choose its color.

Can developers change the map or the place search?

Use the alsl_config filter. For example, to use another tile server and geocoder on the whole site: add_filter( 'alsl_config', function ( $config ) { $config['tiles'] = 'https://tiles.example.com/{z}/{x}/{y}.png'; $config['geocoder'] = 'https://geocoder.example.com/search'; return $config; } ); The geocoder must answer like Nominatim's /search (JSON) or Photon (GeoJSON).

更新日志:

1.0.1 1.0.0