@@ -20,6 +20,8 @@ DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pi
2020- * (static)* [ xTileToLng] ( #xtiletolng )
2121- * (static)* [ yTileToLat] ( #ytiletolat )
2222- * (static)* [ getCenter] ( #getcenter )
23+ - * (static)* [ getBoundingBoxFromPoints] ( #getboundingboxfrompoints )
24+ - * (static)* [ getCenterAndZoomFromBoundingBox] ( #getcenterandzoomfromboundingbox )
2325- [ __ construct] ( #-__construct )
2426- [ getLatLngTopLeft] ( #-getlatlngtopleft )
2527- [ getLatLngTopRight] ( #-getlatlngtopright )
@@ -169,6 +171,61 @@ Get center between two coordinates.
169171
170172
171173
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+
172229---
173230### ->__ construct
174231
0 commit comments