[wordpress插件] ACF OpenStreetMap FieldACF OpenStreetMap字段

wordpress 插件 文章 2020-01-27 01:40 602 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Hazzle free OpenStreetMap with ACF.

带有 ACF 的免费OpenStreetMap。

Usage

用法

In the Fieldgroup editor:

在“字段组”编辑器中:

Return Format:

返回格式:

    • Raw data will return an array holding the field configuration.

      原始数据将返回一个保存字段配置的数组。

    • Leaflet JS will return a fully functional leaflet map.

      Leaflet JS 将返回功能齐全的传单图。

      Just include

      只需包含 <?php the_field('my_field_name');

      ?> in your Theme.

      ?> 中的主题。

      You can choose from a long list of map styles and it supports multiple markers.

      您可以从一长串的地图样式中进行选择,并且它支持多个标记。

    • iFrame (OpenStreetMap.org) Will return an iFrame HTML.

      iFrame(OpenStreetMap.org)将返回iFrame HTML。

      Only four map styles are supported

      仅支持四种地图样式

      – the ones you find on OpenStreetMap – and not more than one marker.

      –您可以在 OpenStreetMap 中找到的内容–不能超过一个标记。

    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.

    地图外观:在地图上平移并缩放地图,然后从地图图层中进行选择,以在编辑器中设置初始地图位置和样式。

    Map Position: If you’re more like a numbers person here you can enter numeric values for the map position.

    地图位置::如果您更像是数字人,则可以输入地图位置的数字值。

    Allow layer selection: Allow the editors to select which map layers to show up in the frontend.

    允许图层选择::允许编辑者选择要在前端显示的地图图层。

    Height: Map height in the frontend and editor.

    高度:前端和编辑器中的地图高度。

    Max.

    最大

    number of Markers
     

    标记数
     

    No value: infinite markers
     

    无值:无限标记
     

    0: No markers
     

    0:没有标记
     

    Any other value: Maximum number of markers.

    其他任何值:最大标记数。

    If the return format is iFrame there can ony be one marker.

    如果返回格式为 iFrame ,则只能有一个标记。

    Development

    发展

    Please head over to the source code on Github.

    请转到Github上的源代码

    Credits

    积分

      • Eliott Condon’s ACF for sure!
      • Eliott Condon的 ACF 当然可以!

      • The OpenStreetMap project
      • OpenStreetMap 项目

      • The Leaflet Project
      • 传单项目

      • The maintainers and contributors of 参与者

        //github.com/leaflet-extras/leaflet-providers" rel="nofollow">Leaflet providers

      • //github.com/leaflet-extras/leaflet-providers“ rel =” nofollow“>传单提供者

      • The very same for 非常相同

        /github.com/perliedman/leaflet-control-geocoder" rel="nofollow">Leaflet Control Geocode

      • /github.com/perliedman/leaflet-control-geocoder“ rel =” nofollow“>传单控制地理位置代码

      • Dominik Moritz who delighted us with Dominik Moritz

        leaflet-locatecontrol" rel="nofollow">Leaflet locate control

      • leaflet-locatecontrol“ rel =” nofollow“>传单定位控件

      • Numerous individuals and organizations who provide wonderful Map related services free of charge.

      • 免费提供精美的地图相关服务的众多个人和组织。

        (You are credited in the map, I hope)

      • (我希望您在地图上功勋卓著)

安装步骤
下载地址

https://downloads.wordpress.org/plugin/acf-openstreetmap-field.1.1.8.zip

https://downloads.wordpress.org/plugin/acf-openstreetmap-field.1.1.8.zip

-EOF-

AI助手支持GPT4.0