Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getBounds() {
return new LatLngBounds([20, -123], [49, -64]);
}
}
const data = this.data().filter(row => !this.omitNullLatLong() || (!!row[latIdx] && !!row[longIdx])).map(row => {
if (!bounds) {
bounds = new LatLngBounds([row[latIdx], row[longIdx]]);
} else {
bounds.extend([row[latIdx], row[longIdx]]);
}
return [row[latIdx], row[longIdx], this.weightColumn_exists() ? row[weightIdx] : 0.5];
});
const heat = new LHeatLayer(data, {
getBounds() {
const retVal = super.getBounds();
return new LatLngBounds([retVal.getNorth(), retVal.getWest()], [17.755278, -64.565]);
}