forked from jensjns/acf-leaflet-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
116 lines (81 loc) · 3.95 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
=== Advanced Custom Fields: Leaflet Field ===
Contributors: jensnilsson
Tags: Advanced Custom Fields, acf, acf4, custom fields, admin, wp-admin, map, leaflet, map markers
Requires at least: 3.4
Tested up to: 4.0
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Addon for Advanced Custom Fields that adds a Leaflet field to the available field types.
== Description ==
This plugin adds a [Leaflet](http://leafletjs.com) map field to the [Advanced Custom Fields](http://www.advancedcustomfields.com/) 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)
== Installation ==
1. Upload `advanced-custom-fields-leaflet-field` to the `/wp-content/plugins/` directory
1. Make sure you have [Advanced Custom Fields](http://www.advancedcustomfields.com/) installed and activated
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Add a Leaflet field to a ACF field group and save
1. The field is now ready for use
== 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.
1. 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](https://github.com/jensjns/acf-leaflet-field/). The github repository will always have the latest code and may occasionally be broken and not work at all.
== Frequently Asked Questions ==
= I activated the plugin but nothing cool happened ;( =
This is not a standalone plugin, you need to have [Advanced Custom Fields](http://www.advancedcustomfields.com/) installed and activated for it to work.
== Screenshots ==
1. Leaflet field with markers, a popup, a polyline and a polygon.
2. Settings for the Leaflet field.
== Changelog ==
= 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
== Upgrade Notice ==
= 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 =
* This update adds support for ACF 5 PRO (it still supports both 3.x and 4.x)
= 1.1.0 =
* New tile-provider: OpenStreetMap, which is now the default tile-provider since it doesn't require an api-key.
* Changed the data-structure to geoJson. IMPORTANT: Breaking change. Sorry.
= 1.0.0 =
* New tool: Locate tool.
* The field now works with the repeater-field.
= 0.2.0 =
* New feature: Added support for binding popups to markers.
= 0.1.0 =
* Release