
內容簡介
聲明:Apple Maps、MapKit JS、以及 Apple 徽標均為 Apple Inc. 的商標。Apple Maps 可能未在所有國家或地區提供服務。
此外掛將 Apple 的 MapKit JS 整合到 WordPress 區塊編輯器 (Gutenberg) 的「Apple Maps」區塊中。您需要擁有一個 Apple 開發者計畫 帳戶、Maps 識別碼以及私密金鑰,才能設定此外掛並連接到 MapKit JS API,才能使此區塊正常運作。請注意,Apple 開發者計畫需要每年付費 99 美元,當地貨幣價格可能因地區而異,註冊流程中顯示的價格為當地貨幣。對符合資格的組織提供 Apple 開發者計畫的收費豁免。請參閱詳細資訊。
設定
啟用 Apple Maps 區塊前,您需要註冊 Apple 開發者計畫並建立 Maps 識別碼、金鑰和權杖。 依照以下步驟,以產生您需要設定外掛和取得 MapKit JS API 存取權的私密金鑰、金鑰 ID 和團隊 ID。
建立 Apple 開發者帳戶
若您還未有 Apple ID,請先至 建立 Apple ID,以便在下一個步驟註冊 Apple 開發者計畫時使用。
以個人或組織身分註冊 Apple 開發者計畫。請注意,您可能已有現有的 Apple 開發者帳戶,但尚未註冊 Apple 開發者計畫,請確認在本步驟中完成註冊程序。
於 App Store Connect 的「協議、稅務及銀行」區段中簽署 Apple 開發者計畫的授權協議。
建立 Maps 識別碼和私密金鑰
建立 Maps 識別碼和 MapKit JS 的私密金鑰。
複製私密金鑰,貼到相應的外掛設定欄中,確保該金鑰包含 -----BEGIN PRIVATE KEY----- 和 -----END PRIVATE KEY-----。
打開您在第 1 步中建立的金鑰,複製 金鑰 ID 值,並將其貼到相應的外掛設定欄中。
打開您在第 1 步中建立的識別碼,複製 應用程式 ID 前綴 值 (請注意該值附帶了 (團隊 ID)),並將其貼到相應的外掛設定欄中。
在外掛設定中點擊 確認 MapKit 憑證 按鈕,以存取區塊選項並開始自訂您的 Apple Maps 區塊!
外掛標籤
開發者團隊
原文外掛簡介
Disclaimer: Apple Maps, MapKit JS, and the Apple logo are trademarks of Apple Inc. Apple Maps may not be available in all countries or regions.
This plugin integrates Apple’s MapKit JS into an “Apple Maps” block in the WordPress block editor (Gutenberg). You will need an Apple Developer Program account, Maps Identifier, and Private Key to configure this plugin and connect to the MapKit JS API in order for the block to function. Note that the Apple Developer Program has an annual fee of 99 USD, in local currency where available. Prices may vary by region and are listed in local currency during the enrollment process. Fee waivers are available for the Apple Developer Program for eligible organizations.
Configuration
In order to start using the Apple Maps block, you will need to sign up for the Apple Developer Program and create your Maps identifiers, keys, and tokens. Follow the steps below to generate the Private Key, Key ID, and Team ID that you will need to configure the plugin and gain access to the MapKit JS API for the Apple Maps block.
Create an Apple Developer account
If you don’t already have an Apple ID, then please create an Apple ID as it is required in order to enroll in the Apple Developer Program in the next step.
Enroll in the Apple Developer Program as either an individual or organization. Note that its possible to have an existing Apple Developer account but not be enrolled in the Apple Developer Program, so please be sure to complete the enrollment process in this step.
Sign the Apple Developer Program License Agreement in the Agreements, Tax, and Banking section of App Store Connect.
Create a Maps Identifier and Private Key
Create a Maps ID and a MapKit JS Private Key.
Copy the Private Key, paste it into the respective plugin setup field, and ensure the key includes the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- lines.
Open the Key you created in Step 1, copy the Key ID value, and paste it into the respective plugin setup field.
Open the Identifier you created in Step 1, copy the App ID Prefix value (notice the value is appended with (Team ID)), and paste it into the respective plugin setup field.
Click the Confirm MapKit Credentials button in the plugin setup to gain access to the block options and begin customizing your Apple Maps block!
