Sobelz Map Selector

外掛說明

The Sobelz Map plugin allows users to select locations on a map and integrates with the WooCommerce checkout page.
By selecting a location by the user, the fields related to the location are filled.

Features

  • Accurate location selection on the map.
  • Integration with WooCommerce checkout fields.
  • The appearance of the map can be adjusted:
    • Customize search box and button text.
    • Change map and button color.
    • Change map icons.
    • Personalize field IDs for a tailored experience.
    • Show or hide the map on the payment page.

Configuration

  1. Navigate to ‘Map Selector’ in the WordPress admin menu.
  2. Adjust the plugin settings, including map color, submit button color, and other options.
  3. Customize the map appearance and behavior to suit your needs.

Support

For support and inquiries, please contact us at sobelzcom@gmail.com.

License

Sobelz Map Plugin is licensed under the GPLv2 or later license.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

Third Party Services

The map display and functionality in this plugin are powered by a compressed React file that utilizes the Nominatim API and Tile URL from OpenStreetMap.

Nominatim API

The Nominatim API is employed to retrieve geographic information about places, including latitude and longitude. The plugin uses the following URL to make requests to the Nominatim API:

This URL specifies that the response should be in JSON format, and the language is set to Persian (fa).

The response from the Nominatim API is utilized to initialize the map.

Default Map Location

The default location of the map is set to Iran. The tile images for the map are retrieved using the following URL:

Here, the {z} parameter specifies the zoom level, {x} specifies the x-coordinate of the map center, and {y} specifies the y-coordinate.

User Interaction

Users can resize the map by dragging the edges.

External Service Documentation

Please note that this plugin relies on the Nominatim API, Tile URL and OpenStreetMap services. It is important for users to be aware of the third-party service usage.

By using this plugin, you agree to comply with the terms of use and policies of the external services mentioned above.

Source Code

螢幕擷圖

  • Plugin display after installation screenshot-1.png.
  • Plugin Settings Page screenshot-2.png.
  • Plugin Functionality Example screenshot-3.png.
  • Customizing Plugin Settings screenshot-4.png.

安裝方式

  1. Upload the sobelz-map folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Visit the ‘Map Selector Settings’ page in the WordPress admin to configure the plugin.

Note: If the map is not displayed on the checkout page for you after installing the plugin, please replace the existing content on the checkout page with the shortcode [woocommerce_checkout].

常見問題集

Q: Is this plugin compatible with the latest version of WordPress?
A: Yes, the plugin is tested and compatible with WordPress version 6.4.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Sobelz Map Selector〉的開發相關工作。

參與者

將〈Sobelz Map Selector〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release.