PageSourceSearch

https://coastalmonitoringac.netlify.app/generalFunctions/getIconSize.js

js coastalmonitoringac.netlify.app collected 2026-10-03 10:36:09 UTC 349 bytes, 11 lines download raw bytes

1let baseIconSize = [30, 30];
2
3export function getIconSize(zoom) {
4  const scale = Math.pow(1.2, zoom - 10);
5  const size = baseIconSize.map((s) => {
6    const scaled = s * scale;
7    return Math.min(Math.max(scaled, 20), 60); // Min 20px, Max 60px
8  });
9  const anchor = size.map((s) => s / 2); // Keep anchor at center
10  return { size, anchor };
11}

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.