MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / toLatLngBounds

Function toLatLngBounds

libs/leaflet/leaflet-src.js:1439–1444  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1437 // @factory L.latLngBounds(latlngs: LatLng[])
1438 // Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).
1439 function toLatLngBounds(a, b) {
1440 if (a instanceof LatLngBounds) {
1441 return a;
1442 }
1443 return new LatLngBounds(a, b);
1444 }
1445
1446 /* @class LatLng
1447 * @aka L.LatLng

Callers 3

leaflet-src.jsFile · 0.85
polygonCenterFunction · 0.85
polylineCenterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected