File tree Expand file tree Collapse file tree 2 files changed +82
-3
lines changed
docs/classes/DantSu/OpenStreetMapStaticAPI Expand file tree Collapse file tree 2 files changed +82
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ DantSu\OpenStreetMapStaticAPI\OpenStreetMap is a PHP library created for easily
22
22
- [ addMarkers] ( #-addmarkers )
23
23
- [ addDraw] ( #-adddraw )
24
24
- [ fitToDraws] ( #-fittodraws )
25
+ - [ fitToMarkers] ( #-fittomarkers )
26
+ - [ fitToMarkersAndDraws] ( #-fittomarkersanddraws )
27
+ - [ fitToPoints] ( #-fittopoints )
25
28
- [ getMapData] ( #-getmapdata )
26
29
- [ getImage] ( #-getimage )
27
30
@@ -211,6 +214,82 @@ Fit map to draws.
211
214
212
215
213
216
217
+ ---
218
+ ### ->fitToMarkers
219
+
220
+ Fit map to markers.
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ #### Parameters:
230
+
231
+ | Parameter | Type | Description |
232
+ | -----------| ------| -------------|
233
+ | ` padding ` | ** int** | Padding in pixel |
234
+
235
+
236
+ #### Return Value:
237
+
238
+ ** $this** : Fluent interface
239
+
240
+
241
+
242
+ ---
243
+ ### ->fitToMarkersAndDraws
244
+
245
+ Fit map to draws and markers.
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ #### Parameters:
255
+
256
+ | Parameter | Type | Description |
257
+ | -----------| ------| -------------|
258
+ | ` padding ` | ** int** | Padding in pixel |
259
+
260
+
261
+ #### Return Value:
262
+
263
+ ** $this** : Fluent interface
264
+
265
+
266
+
267
+ ---
268
+ ### ->fitToPoints
269
+
270
+ Fit map to an array of points.
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+ #### Parameters:
280
+
281
+ | Parameter | Type | Description |
282
+ | -----------| ------| -------------|
283
+ | ` points ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng[ ] ** | LatLng points |
284
+ | ` padding ` | ** int** | Padding in pixel |
285
+
286
+
287
+ #### Return Value:
288
+
289
+ ** $this** : Fluent interface
290
+
291
+
292
+
214
293
---
215
294
### ->getMapData
216
295
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public function fitToDraws(int $padding = 0)
135
135
}
136
136
137
137
/**
138
- * Fit map to draws .
138
+ * Fit map to markers .
139
139
*
140
140
* @param int $padding Padding in pixel
141
141
* @return $this Fluent interface
@@ -150,7 +150,7 @@ public function fitToMarkers(int $padding = 0)
150
150
}
151
151
152
152
/**
153
- * Fit map to draws.
153
+ * Fit map to draws and markers .
154
154
*
155
155
* @param int $padding Padding in pixel
156
156
* @return $this Fluent interface
@@ -168,7 +168,7 @@ public function fitToMarkersAndDraws(int $padding = 0)
168
168
}
169
169
170
170
/**
171
- * Fit map to points.
171
+ * Fit map to an array of points.
172
172
*
173
173
* @param LatLng[] $points LatLng points
174
174
* @param int $padding Padding in pixel
You can’t perform that action at this time.
0 commit comments