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

Advanced Custom Fields: Leaflet Field

설명

This plugin adds a Leaflet map field to the Advanced Custom Fields plugin. Use it to display maps with markers, lines and shapes along with your posts and pages.

  • Add multiple markers with popups to the map.
  • Draw polylines, polygons and rectangles.
  • The field stores both your zoom-level and viewport location.
  • Function to render the map in your theme is included in the plugin: <?php the_leaflet_field( 'my_leaflet_field' ); ?>, just plug and play!
  • Supports ACF4 and ACF5 (Pro)

Instructions

A rendering function is provided in the plugin. If you want to use it all you have to do is use the_leaflet_field( 'my_leaflet_field' ); where you want to render the map.

To do

Things I plan to add to the plugin:

  1. Adding images to popups.
  2. Provide a tool for importing GeoJSON-structured data into the field.

GitHub

If you want the latest development version of this plugin it is available over at my github repository. The github repository will always have the latest code and may occasionally be broken and not work at all.

스크린샷

  • Leaflet field with markers, a popup, a polyline and a polygon.
  • Settings for the Leaflet field.

설치

  1. Upload advanced-custom-fields-leaflet-field to the /wp-content/plugins/ directory
  2. Make sure you have Advanced Custom Fields installed and activated
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Add a Leaflet field to a ACF field group and save
  5. The field is now ready for use

FAQ

I activated the plugin but nothing cool happened ;(

This is not a standalone plugin, you need to have Advanced Custom Fields installed and activated for it to work.

후기

2019년 3월 29일
WordPress 5.1 - ACF Pro 5.7 Je veux vraiment remercier l'auteur de cet Advanced Custom Field for ACF. D'une simplicité exceptionnelle : aucun besoin de créer des fonctions compliquées, juste à insérer le code php dans la page. De plus ses possibilités d'ajouter des points pour marquer les lieux, des lignes pour les entourer... Waouh Really thanks for this awesome ACF field. Laurent de Coudenhove
2018년 8월 13일
Shame it isn't working. Would be a killer alternative for the now paid google maps
2017년 6월 21일
It still works. -1 star for no continued developement. I have Problems showing the map in an ajax modal window.
모든 7 평가 읽기

기여자 & 개발자

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

기여자

자국어로 “Advanced Custom Fields: Leaflet Field”(을)를 번역하세요.

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

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

변경이력

1.2.1

  • Fixed a bug where polylines, polygons and rectangles wouldn’t be rendered to the map when no markers were present on the map.

1.2.0

  • More polished UI.
  • Added support for drawing polylines, polygons and rectangles.
  • Added OpenStreetMap Black and White as Map Provider option.
  • Fixed a bug where a popup couldn’t be opened after it had been opened once.

1.1.2

  • 4.3.9 Compatibility patch

1.1.1

  • Added support for ACF 5 (PRO)

1.1.0

  • Added support for OpenStreetMap as tile-provider. This will be the new default tile-provider.
  • Switched to geoJson for data-structure.

1.0.0

  • Migrated the plugin into field-template for v3 & v4 support.
  • New tool: Locate tool.
  • Fixed repeater-support.

0.2.0

  • Added support for binding popups to markers.

0.1.0

  • Release