-
Notifications
You must be signed in to change notification settings - Fork 15
/
readme.txt
258 lines (164 loc) · 5.93 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
=== Simple Map ===
Contributors: miyauchi
Tags: google maps, map, shortcode, address
Requires at least: 3.9
Tested up to: 4.9
Stable tag: 4.9.0
Easy way to embed google map(s).
== Description ==
Easy way to embed google map(s) using [gmaps.js](http://hpneo.github.com/gmaps/).
This plugin allows you to convert address into google maps like below:
`[map]San Francisco, California[/map]`
Another way, you can embed Google Map with url only like oEmbed.
You can also use coordinates, set width, height and zoom:
`[map lat="37.77493" lng="-122.41942"]
Text you would
like to appear
as a tooltip
goes here
[/map]`
In this case there will be a marker on the map with a tooltip appearing on click on the said marker.
You can use simple html as the tooltip content.
[This plugin is maintained on GitHub.](https://github.com/miya0001/simple-map)
= Some features: =
* Allows you to embed google map based on shortcode.
* Markers can be added using address or lat/long.
* Displays static map for iPhone automatically.
* oEmbed Support.
= Arguments =
* width: Width of the map. Default value is "100%".
* height: Height of the map. Default value is "200px".
* zoom: Zoom of the map. Default value is "16".
* breakpoint: If display is narrower than this value, this plugin will display static map. Default value is "480".
* addr: Address of the map you want to place.
* lat: Lat of the map you want to place.
* lng: Lng of the map you want to place.
* infowindow: If you want to open infoWindow by Default, please set "open".
* map_type_control: True or Flase.
* map_type_id: 'ROADMAP' or 'SATELLITE' or 'HYBRID' or 'TERRAIN'.
If you will set lat/lng and address, this plugin gives priority to lat/lng.
= Filter Hooks =
This plugin has some filter hooks for customize default.
* simplemap_default_width
* simplemap_default_height
* simplemap_default_zoom
* simplemap_default_breakpoint
* simplemap_default_infowindow
`add_filter( 'simplemap_default_zoom', function(){
return 10; // Default zoom is 10
} );`
= Translators =
* Japanese(ja) - [Takayuki Miyauchi](http://firegoby.jp/)
Please contact me.
* https://github.com/miya0001/simple-map/issues
= Contributors =
* [Takayuki Miyauchi](http://firegoby.jp/)
* [Zoltán Balogh](http://birdcreation.com/)
* [Takanobu Watanabe](https://github.com/tknv)
* [Shinichi Nishikawa](http://th-daily.shinichi.me/)
* [nissuk](http://www.nissuk.info/)
== Installation ==
* Download the zip, extract it and upload the extracted folder to your-wp-directory/wp-content/plugins/
* Go to the plugins administration screen in your WordPress admin and activate the plugin.
OR
* Download the zip, go to the plugins administration screen in your WordPress admin, click on Add New then on upload, browse to the downloaded zip, upload the plugin and activate it.
OR
* Go to the plugins administration screen in your WordPress admin, click on Add New, search for Simple Map and click on Install Now.
*Usage*
This plugin allows you to convert address into google maps like below:
`[map]San Francisco, California[/map]`
Another way, you can embed Google Map with url only like oEmbed.
You can also use coordinates, set width, height and zoom:
`[map lat="37.77493" lng="-122.41942" width="100%" height="400px" zoom="15"]
Text you would
like to appear
as a tooltip
goes here
[/map]`
In this case there will be a marker on the map with a tooltip appearing on click on the said marker.
You can use simple html as the tooltip content.
== Screenshots ==
1. Very easy.
2. Info Window.
3. Mobile Support. (Google static map)
== Changelog ==
= 2.14.2 =
* Fix API key problem on static map
= 2.13.0 =
* Tested up to WordPress 4.5
= 2.12.0 =
* Add args `map_type_control` and `map_type_id`.
= 2.10.1 =
* Requires WordPress 3.9 or later.
* Tested on PHP7
https://github.com/miya0001/simple-map/compare/2.10.0...2.11.0
= 2.10.0 =
* Fix warning for Google Map api
https://github.com/miya0001/simple-map/compare/2.9.0...2.10.0
= 2.8.5 =
* Auto deploy
= 2.8.1 =
* Update SimpleMap class.
https://github.com/miya0001/simple-map/compare/2.8.0...2.8.1
= 2.8.0 =
* Display map in modal window.
https://github.com/miya0001/simple-map/compare/2.7.0...2.8.0
= 2.7.0 =
* UPdate gmaps.js to 0.4.21
* Add tests on travis
https://github.com/miya0001/simple-map/compare/2.6.0...2.7.0
= 2.6.0 =
* Update gmaps.js from 0.4.18 to 0.4.19
* Add front end test
https://github.com/miya0001/simple-map/compare/2.5.0...2.6.0
= 2.5.0 =
* Update gmaps.js 0.4.17 to 0.4.18
* Tested on WordPress 4.3
= 2.4.0 =
* Update gmaps.js 0.4.16 to 0.4.17
= 2.3.0 =
* Tested on the WordPress 4.1.
* Up to minimum required to WordPress 3.6.
= 2.2.0 =
* update gmaps.js 0.4.15 to 0.4.16
= 2.1.0 =
* update gmaps.js 0.4.14 to 0.4.15
= 2.0.0 =
* Add argument infowindow
* little fix
= 1.9.0 =
* update gmaps.js 0.4.13 to 0.4.14
= 1.8.0 =
* update gmaps.js 0.4.12 to 0.4.13
= 1.7.0 =
* update gmaps.js 0.4.11 to 0.4.12
= 1.6.0 =
* update gmaps.js 0.4.9 to 0.4.11
= 1.5.0 =
* enable ssl source of google map api js
= 1.4.0 =
* change URL match pattern.
= 1.3.0 =
* Update gmaps.js to 0.4.9.
= 1.2.0 =
* Tested on the WordPress 3.8.
* Add Grunt.
= 1.1.0 =
* Added support for gmaps.js tooltip on markers
= 1.0.0 =
* Delete hl=ja param from static map link uri.
= 0.9.0 =
* hook changed to the init.
= 0.8.0 =
* shortcode atts and address priority changed.
= 0.7.0 =
* gmaps.js updated 0.4.4 to 0.4.5
= 0.6.0 =
* oEmbed Support
= 0.1.0 =
* The first release.
== Credits ==
This plugin is not guaranteed though the user of WordPress can freely use this plugin free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plugin use are not done at all beforehand.
== Contact ==
twitter @miya0001