Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

WP_NearbyFacilities

Описание

中心点と検索対象を指定するだけで、中心点と検索対象のそれぞれにマーカーを表示するGoogleマップを表示するプラグインです。
使用を開始する前に、Google Maps PlatformでAPIキーを取得しておく必要があります。

It is a plug-in that displays a Google Map that displays markers at each of the center point and search target simply by specifying the center point and search target.
Before you begin, you need to have an API key on Google Maps Platform.

Arbitrary section

Установка

  1. /wp-content/pluginsディレクトリにプラグインのファイルをディレクトリごとアップロードします。
  2. WordPressの「プラグイン」メニューからプラグインを有効化します。
  3. 「NearbyFacilities -> 設定」メニューからAPIキーを登録します。
  4. 投稿内にショートコードを書けばGoogle Mapが表示されます。
    例:[nearbyFacilities address=»中心点の住所» type=»検索対象の種類» zoom=»ズームレベル» radius=»検索半径»]

  5. Upload the plugin file to the /wp-content/plugins directory.

  6. Activate the plugin through the ‘Plugins’ menu in WordPress.
  7. Register an API key from the «NearbyFacilities -> Settings» menu.
  8. If you write a short code in the post, Google Map will be displayed.
    ex:[nearbyFacilities address=»center address of map» type=»type of search target» zoom=»zoom level» radius=»search radius»]

Часто задаваемые вопросы

  • 何か必要なものはありますか?

    • Google Maps PlatformでAPIキーを取得しておく必要があります。
      以下のサイトを参考にキーを取得して、Geocoding API、Maps JavaScript API、Places APIの3つを有効にしておきます。
      [https://qiita.com/k2999/items/a9f41ea697a4f955ec1c]
  • What do I need to display the map?

    • Yes. To display a map using the Google Maps API, you need a Google Maps API key.

      Obtain the key by referring to the following pages, etc., and enable the three APIs of Geocoding API, Maps JavaScript API, Places API.
      [https://qiita.com/k2999/items/a9f41ea697a4f955ec1c]

  • ショートコードを作成するにはどうすればよいですか?

    • APIキーを登録した後 [nearbyFacilities address="中心点の住所" type="検索対象の種類" zoom="ズームレベル" radius="検索半径"] の書式で書くことができます。
    • 以下の方法でにWebUIで生成することもできます。
      1. 「NearbyFacilities -> 設定」メニューからAPIキーを登録します。
      2. 「NearbyFacilities -> ショートコードの生成」メニューで各種パラメータを設定し、ショートコードを生成します。
      3. 「決定」ボタンクリックで最下部のテキストボックスに生成されたショートコードが入力されます。
      4. テキストボックスをクリックすると、自動的にクリップボードにコピーされるので、投稿の際に貼り付けてください。
      • WebUIにあるパラメーターの他に、ボックスの幅と高を指定することもできます(「px」または「%」)。
  • How do I get the shortcode to write ?

    • After registering the API key, It can be written in the format of [nearbyFacilities address="address of center point" type="type of search target" zoom="zoom level" radius="search radius"] .
    • It can also be generated in WebUI in the following ways.
      1. Register an API key from the «NearbyFacilities -> Settings» menu.
      2. Set various parameters in the «NearbyFacilities-> Generate Shortcode» menu to generate a shortcode.
      3. Click the «Submit» button and the generated shortcode will be entered in the text box at the bottom.
      4. Clicking on the text box will automatically copy it to the clipboard, so paste it when posting.
      • In addition to the parameters found in the WebUI, you can also specify the width and height of the box («px» or «%»).
  • 「address」に設定できるのは住所だけですか?

    • 住所がはっきりわからない場合は、Googleで検索できるのであれば建物名・施設名でも大丈夫です。
  • Can only «address» be set for address?

    • If you do not know the address, you can use the building name or facility name if you can search on Google.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«WP_NearbyFacilities» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«WP_NearbyFacilities» переведён на 1 язык. Благодарим переводчиков за их работу.

Перевести «WP_NearbyFacilities» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.3

  • 重複していたサイドメニューの項目名を修正(Fixed duplicate side menu item names)
  • readme.txtの修正(Modify readme.txt)

1.0.2

  • 翻訳ファイル読み込みの関数をクラス内に収容(Contains translation file reading function in class)

1.0.1

  • コーディングスタイルの修正(Modify coding style)
  • 動作していないjavascriptの読み込みを抑制(Suppress loading of javascript that is not working)

1.0.0

  • 公式申請前のバージョン。限定された環境でしか動かなかった(Version before official application. Only worked in a limited environment)