forked from miya0001/simple-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
194 lines (128 loc) · 4.59 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
=== Simple Map ===
Contributors: miyauchi
Donate link: http://wpist.me/
Tags: google maps, map, shortcode, address
Requires at least: 3.6
Tested up to: 4.1
Stable tag: 2.3.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 said marker.
You can use simple html as the tooltip content.
[This plugin maintained on GitHub.](https://github.com/miya0001/simple-map)
= Some features: =
* Allow you to embed google map based on shortcode.
* Markers can be added using address or lat/long.
* Display 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".
If you will set lat/lng and address, this plugin give 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 to 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/)
== 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 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.3.0 =
* Tested on the WordPress 4.1.
* Uo 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 plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plug-in use are not done at all beforehand.
== Contact ==
twitter @miya0001