Hazzle free OpenStreetMap with ACF.
带有 ACF 的免费OpenStreetMap。 p>
Usage
用法 h3>
In the Fieldgroup editor:
在“字段组”编辑器中: h4>
Return Format:
返回格式: strong> p>Raw data will return an array holding the field configuration.
原始数据 em>将返回一个保存字段配置的数组。 p>
li>
Leaflet JS will return a fully functional leaflet map.
Leaflet JS em>将返回功能齐全的传单图。Just include 只需包含 <?php the_field('my_field_name'); ?>
in your Theme.
?> code>中的主题。
You can choose from a long list of map styles and it supports multiple markers.
您可以从一长串的地图样式中进行选择,并且它支持多个标记。 p>
li>
iFrame (OpenStreetMap.org) Will return an iFrame HTML.
iFrame(OpenStreetMap.org) em>将返回iFrame HTML。Only four map styles are supported
仅支持四种地图样式
– the ones you find on OpenStreetMap – and not more than one marker.
–您可以在 OpenStreetMap 中找到的内容–不能超过一个标记。 p>
li>
ul>
Map Appearance: Pan and zoom on the map and select from the Map layers to set the initial map position and style in the editor.
地图外观 strong>:在地图上平移并缩放地图,然后从地图图层中进行选择,以在编辑器中设置初始地图位置和样式。 p>Map Position: If you’re more like a numbers person here you can enter numeric values for the map position.
地图位置: strong>:如果您更像是数字人,则可以输入地图位置的数字值。 p>Allow layer selection: Allow the editors to select which map layers to show up in the frontend.
允许图层选择: strong>:允许编辑者选择要在前端显示的地图图层。 p>Height: Map height in the frontend and editor.
高度 strong>:前端和编辑器中的地图高度。 p>Max. 最大number of Markers
标记数 strong>
– No value: infinite markers
– 无值 em>:无限标记
– 0: No markers
– 0: em>没有标记
– Any other value: Maximum number of markers.
– 其他任何值: em>最大标记数。If the return format is iFrame there can ony be one marker.
如果返回格式为 iFrame em>,则只能有一个标记。 p>Development
发展 h3>
Please head over to the source code on Github.
请转到Github上的源代码 。 p>
Credits
积分 h3>
- Eliott Condon’s ACF for sure!
- Eliott Condon的 ACF 当然可以! li>
- The OpenStreetMap project
- OpenStreetMap 项目 li>
- The Leaflet Project
- 传单项目 li>
- The maintainers and contributors of 参与者:
//github.com/leaflet-extras/leaflet-providers" rel="nofollow">Leaflet providers
//github.com/leaflet-extras/leaflet-providers“ rel =” nofollow“>传单提供者 li>
- The very same for 非常相同
/github.com/perliedman/leaflet-control-geocoder" rel="nofollow">Leaflet Control Geocode
/github.com/perliedman/leaflet-control-geocoder“ rel =” nofollow“>传单控制地理位置代码 li>
- Dominik Moritz who delighted us with Dominik Moritz 用
leaflet-locatecontrol" rel="nofollow">Leaflet locate control
leaflet-locatecontrol“ rel =” nofollow“>传单定位控件 li>
- Numerous individuals and organizations who provide wonderful Map related services free of charge.
- 免费提供精美的地图相关服务的众多个人和组织。
(You are credited in the map, I hope)
(我希望您在地图上功勋卓著) li>
ul>