Skip to content

Commit 967acde

Browse files
committed
Rename get bounds fns
1 parent 26f183b commit 967acde

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/plots/map/layout_defaults.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function handleDefaults(containerIn, containerOut, coerce, opts) {
2828
// dynamically set center/zoom if neither param provided
2929
if (!containerIn?.center && !containerIn?.zoom) {
3030
var [{ lon, lat }] = opts.fullData;
31-
var { minLon, maxLon } = getMinBoundLon(lon);
32-
var { minLat, maxLat } = getMinBoundLat(lat);
31+
var { minLon, maxLon } = getLonBounds(lon);
32+
var { minLat, maxLat } = getLatBounds(lat);
3333
// this param is called bounds in mapLibre ctor
3434
// not to be confused with maxBounds aliased below
3535
containerOut._fitBounds = {
@@ -63,7 +63,7 @@ function handleDefaults(containerIn, containerOut, coerce, opts) {
6363
containerOut._input = containerIn;
6464
}
6565

66-
function getMinBoundLon(lon) {
66+
function getLonBounds(lon) {
6767
if (!lon.length) return { minLon: 0, maxLon: 0 };
6868

6969
// normalize to [0, 360)
@@ -101,7 +101,7 @@ function getMinBoundLon(lon) {
101101
}
102102
}
103103

104-
function getMinBoundLat(lat) {
104+
function getLatBounds(lat) {
105105
return {
106106
minLat: Math.min(...lat),
107107
maxLat: Math.max(...lat)

0 commit comments

Comments
 (0)