1export class CommonGoogleMaps { 2 static setZoom(map, bounds, defaultZoom) { 3 if (this.boundsIsSingleLocation(bounds) || bounds.isEmpty()) { 4 map.setZoom(defaultZoom); // single or no marker 5 } else { 6 map.fitBounds(bounds); 7 } 8 } 9 10 static boundsIsSingleLocation(bounds) { 11 return bounds.getNorthEast() && bounds.getSouthWest() && bounds.getNorthEast().equals(bounds.getSouthWest()); 12 } 13}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.