export class Helpers {
constructor() {
}
returnClusterClassObject(length) {
var classSize,
offset;
if (length >= 3) {
classSize = 'large';
offset = 25;
} else if (length == 2) {
classSize = 'medium';
offset = 20;
} else {
classSize = 'small';
offset = 15;
}
return {
classSize: classSize,
offSet: offset
}
}
returnMapProjections(map) {
var bounds = new google.maps.LatLngBounds(),
projection = map.getProjection();
return {
bounds: bounds,
projection: projection,
topRight: projection.fromLatLngToPoint(map.getBounds().getNorthEast()),
bottomLeft: projection.fromLatLngToPoint(map.getBounds().getSouthWest()),
scale: Math.pow(2, map.getZoom())
}
}
}