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,
中心点と検索対象を指定するだけで、中心点と検索対象のそれぞれにマーカーを表示する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
- 01/wp-content/plugins ディレクトリにプラグインのファイルをディレクトリごとアップロードします。
- 02WordPressの「プラグイン」メニューからプラグインを有効化します。
- 03「NearbyFacilities -> 設定」メニューからAPIキーを登録します。
- 04投稿内にショートコードを書けばGoogle Mapが表示されます。 例:[nearbyFacilities address=”中心点の住所” type=”検索対象の種類” zoom=”ズームレベル” radius=”検索半径”]
- 05Upload the plugin file to the /wp-content/plugins directory.
- 06Activate the plugin through the ‘Plugins’ menu in WordPress.
- 07Register an API key from the “NearbyFacilities -> Settings” menu.
- 08If 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]