這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Google Map for Gutenberg Block

外掛說明

Google Maps for Gutenberg is a simple, lightweight flexible google map plugin which allows you to create a map with one click. It has tons of features such as full width map, 17 different custom map styles, custom width and height attributes. Easy and Flexible !!

Gutenberg is now a core feature so please update to WordPress v5, or install the Gutenberg plugin.

This plugin requires WordPress 5.0 or greater.

Plugin Features

Works as any other Gutenberg block with the following settings:
* 17 Different Map Styles
* Scroll Zoom
* Map Width and Height Features
* Full Width Map Styles (Entire Screen)
* Upload Custom Marker for your map
* Easy and Flexible
* Customize Everything
* And many more..

API Key

This plugin requires an API key to interact with Google Maps. Without an API key maps will not be displayed.

To obtain an API key follow these steps:
1. Create a new project in the Google Developer’s console by clicking here and selecting Create new project
2. Name your project
3. Select HTTP referrers (web sites) for the Key restriction type
4. Enter the domains where your API key will be used
– Example: *.mysite.com
5. Click the Create button
6. Write your API key down in a safe place
7. Enter the API key into the plugin settings

Note: The API key will be exposed publicly to generate the map. It is important to restrict your API key so others do not abuse it. The API key will be used, and displayed, in both the WordPress editor and the front end of the site.

螢幕擷圖

  • Animated GIF showing a demo of the plugin

安裝方式

This plugin can be installed just like you would install any other WordPress plugin. Because Google Map embed require an API key you’ll need to provide a valid API key in plugin settings as well. See the detailed steps below.

  1. Install and activate the Gutenberg plugin if you are on a WordPress version <= 5.0
  2. Upload the plugin to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Obtain a Google Map embed API key (instructions below)
  5. Visit the plugin settings from Tools > Google Map and enter/save your Google Map embed API key
  6. Search for Google Map when adding a new content block
  7. Drag the marker to your preferred location
  8. Optionally edit the advanced block settings

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Google Map for Gutenberg Block〉的開發相關工作。

參與者

將〈Google Map for Gutenberg Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • 2019-02-12
  • initial release