@@ -20,6 +20,8 @@ DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pi
20
20
- * (static)* [ xTileToLng] ( #xtiletolng )
21
21
- * (static)* [ yTileToLat] ( #ytiletolat )
22
22
- * (static)* [ getCenter] ( #getcenter )
23
+ - * (static)* [ getBoundingBoxFromPoints] ( #getboundingboxfrompoints )
24
+ - * (static)* [ getCenterAndZoomFromBoundingBox] ( #getcenterandzoomfromboundingbox )
23
25
- [ __ construct] ( #-__construct )
24
26
- [ getLatLngTopLeft] ( #-getlatlngtopleft )
25
27
- [ getLatLngTopRight] ( #-getlatlngtopright )
@@ -169,6 +171,61 @@ Get center between two coordinates.
169
171
170
172
171
173
174
+ ---
175
+ ### ::getBoundingBoxFromPoints
176
+
177
+ Transform array of LatLng to bounding box
178
+
179
+
180
+
181
+ * This method is ** static** .
182
+
183
+
184
+
185
+
186
+ #### Parameters:
187
+
188
+ | Parameter | Type | Description |
189
+ | -----------| ------| -------------|
190
+ | ` points ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng[ ] ** | |
191
+
192
+
193
+ #### Return Value:
194
+
195
+ ** \DantSu\OpenStreetMapStaticAPI\LatLng[ ] ** :
196
+
197
+
198
+
199
+ ---
200
+ ### ::getCenterAndZoomFromBoundingBox
201
+
202
+ Get center and zoom from two points.
203
+
204
+
205
+
206
+ * This method is ** static** .
207
+
208
+
209
+
210
+
211
+ #### Parameters:
212
+
213
+ | Parameter | Type | Description |
214
+ | -----------| ------| -------------|
215
+ | ` topLeft ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng** | |
216
+ | ` bottomRight ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng** | |
217
+ | ` padding ` | ** int** | |
218
+ | ` imageWidth ` | ** int** | |
219
+ | ` imageHeight ` | ** int** | |
220
+ | ` tileSize ` | ** int** | |
221
+
222
+
223
+ #### Return Value:
224
+
225
+ ** array** : center : LatLng, zoom : int
226
+
227
+
228
+
172
229
---
173
230
### ->__ construct
174
231
0 commit comments