이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

ACF: Google Maps Field (Multiple Markers)

설명

A new field type for Advanced Custom Fields (ACF) that allows you to place multiple markers and choose multiple locations all on a single map field, resulting in a cleaner admin UI, better user experience for the CMS user and fewer Google Map API loads. The field will display the address for each map marker below the map so it’s even more manageable.

This field type solves the problem of only being able to select one location with the standard ACF Google Map field.
To choose multiple locations, you’d normally be required to use a repeater field with a Google Map field in it. This can quickly become chaotic and difficult to keep track of/manage.

Compatibility

This ACF field type is compatible with:
* ACF 5

Usage Instructions

On the new Google Maps (Multiple Markers) field, you can:
– LEFT CLICK on the map to place a new marker
– RIGHT CLICK on a marker to remove it
– CLICK AND DRAG a marker around on the map
– SEARCH for a place or address in the search box
– HOVER over an address in the address list below the map to see which pin it corresponds to
– LEFT CLICK on the trash icon on a row in the address list to remove it’s corresponding marker.

Google Maps API

Your Google Maps API key will need the following APIs enabled:
– Geocoding API
– Places API
– Maps JavaScript API

Credits

This is a modified/enhanced version of the standard ACF Google Map plugin, so some of the Javascript code derives from the original field. Credit for the original of this ACF field goes to the developers of Advanced Custom Fields.

스크린샷

  • Example of the new field in action
  • Field configuration
  • Max pins

설치

  1. Copy the acf-google-map-multi folder into your wp-content/plugins folder
  2. Activate the Google Map (Multiple Markers) plugin via the plugins admin page
  3. Register your Google Maps API key in your theme by following the instructions here: https://www.advancedcustomfields.com/resources/google-map/#requirements
  4. Create a new field in ACF and select the Google Map (Multiple Markers) type under the jQuery category

후기

2022년 2월 2일
Anything that Rajiv works on is solid. He’s a great programmer and knows how to solve problems. This is a very straightforward plugin that solves a straightforward missing feature inside of ACF.
모든 2 평가 읽기

기여자 & 개발자

“ACF: Google Maps Field (Multiple Markers)”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “ACF: Google Maps Field (Multiple Markers)”(을)를 번역하세요.

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

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

변경이력

1.0.0

  • Initial Release.

1.0.1

  • Updated readme.
  • Tested with newest version of WordPress.

1.0.2

  • Fixed bug where the field value wouldn’t properly reset when adding a new marker.
  • Changed name from “Google Map” to “Google Maps”

1.0.3

  • Bumped WordPress tested version to 5.9
  • Adjusted text in readme.txt

1.0.4

  • JS set to strict mode with “use strict”;

1.0.5

  • Retested with WordPress 6.0