Block for 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

  1. 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.
  2. 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.
  3. 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

  1. Create a Maps ID and a MapKit JS Private Key.
  2. 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.
  3. Open the Key you created in Step 1, copy the Key ID value, and paste it into the respective plugin setup field.
  4. 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.
  5. Click the Confirm MapKit Credentials button in the plugin setup to gain access to the block options and begin customizing your Apple Maps block!

스크린샷

  • Block settings
  • Block marker settings
  • Block initial install view showing MapKit JS credential fields
  • Block settings page showing MapKit JS credential fields

블록

이 플러그인은 1(을)를 제공합니다.

  • Apple Maps Add an Apple Map to your site.

설치

  1. Install the plugin via the plugin installer, either by searching for it or uploading a .ZIP file.
  2. Activate the plugin.
  3. Follow the instructions to configure your accesss to the MapKit JS API.
  4. Use Apple Maps for WordPress!

FAQ

I’m seeing validation errors when trying to authenticate my MapKit JS credentials, what am I doing wrong?

If you have WordPress installed in a subdirectory, then there is a known issue specifically related to this setup where the WordPress Admin URL is different from the site URL. We’re working on a minor release to resolve this issue.

I want to update my MapKit JS credentials, what’s the best way to do this?

Our recommendation on updating the Apple Maps block settings focuses on ensuring the best experience for your site users. Specifically we recommend the following approach to ensure that existing Apple Maps on your site continue to be displayed during your MapKit JS credential transition.

  1. Create a new MapKit JS Private Key, Key ID, and/or Team ID.
  2. Update the Apple Maps block settings with the newly created Private Key, Key ID, and/or Team ID.
  3. Delete your old MapKit JS Private Key, Key ID, and/or Team ID.

Are there any MapKit JS rate limits?

There is a free daily limit of 250,000 map views and 25,000 service calls per the Apple Developer Program membership. For additional MapKit JS capacity needs you will need to contact Apple directly.

Can I see how many map views and service requests are made to my MapKit JS Private Key?

Yes, you can track your MapKit JS useage on the MapKit JS Developer Dashboard. You can also monitor map initializations and service requests in realtime, or see up to a year of activity by day, week, month, or year via the MapKit JS Dashboard.

후기

2022년 10월 12일 답글 1개
This plugin is awesome and exactly what I wanted to see. Setup is very easy. There’s a bug though: While setting up the Gutenberg block, error messages keep appearing on the bottom left of the screen. I’d like to have an option to display the map in dark mode. I know MapKit JS offers that.
2020년 8월 6일 답글 1개
I have been using several different map plugins for my Wordpress site. All have had issues. I don’t want to use Google Maps, and the other plugins related to open maps I have looked at have limitations related to geolookups (particularly non-english locations) and marker placement. Having an easy way to embed Apple Maps on my Wordpress site is very helpful. Also like that I can place multiple markers on a map.
모든 2 평가 읽기

기여자 & 개발자

“Block for Apple Maps”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Block for Apple Maps”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.4 – 2024-08-22

1.1.3 – 2023-11-16

1.1.2 – 2023-10-16

1.1.1 – 2023-06-21

1.1.0 – 2023-01-23

Earlier versions

For the changelog of earlier versions, please refer to the changelog on github.com.