This plugin adds a Leaflet map field to the Advanced Custom Fields plugin.
此插件将“传单”地图字段添加到“高级自定义字段”插件。 p>
Create the backend field
创建后端字段 h4>
You can add a leaflet map field using ACF like the Google Map field.
您可以使用ACF来添加传单地图字段,例如Google Map字段。 p>
Diplay the map in front-end
在前端显示地图 h4>
Uses the classic ACF get_field('field_name')
function to get field data (lat, lng, address & zoom).
使用经典的ACF get_field('field_name') code>函数获取字段数据(纬度,经度,地址和缩放)。 p>Warning, the get_field()
function does not display the map itself, for this, use the
警告, get_field() code>函数不会显示地图本身,为此,请使用="nofollow">leaflet js map documentation directly
=“ nofollow”>传单js地图文档直接 p>
Compatibility
兼容性 h4>
This ACF field type is compatible with:
此ACF字段类型兼容:
* ACF 5 only (Pro & Free)
*仅适用于ACF 5(专业版和免费版) p>
NB: If you're using the ACF 4 Free version, you can upgrade to version 5 step by step on this page
“ rel =” nofollow“>在此页面上 p>