src/components/coordinates-minichart/utils.js
/**
 * Fetches attribution objects from the attribution endpoint (currently the raw API).
 * @returns {Array} Array of attribution objects { label, alt, boxes, minLevel, maxLevel }
 */
Fetches attribution objects from the attribution endpoint (currently the raw API).
@returns {Array} Array of attribution objects { label, alt, boxes, minLevel, maxLevel }
Fetches attribution objects from the attribution endpoint ( currently the raw API ) . @returns { Array } Array of attribution objects { label alt boxes minLevel maxLevel }
async function _getHereTileBoxes() {
  const rawTileBoxes = await fetch(COPYRIGHT_URL).then(response =>
    response.json()
  );
  return rawTileBoxes.normal.map(attr => ({
    ...attr,
    boxes: attr.boxes.map(box =>
      L.latLngBounds(L.latLng(box[0], box[1]), L.latLng(box[2], box[3]))
    ),
  }));
}
async function _getHereTileBoxes ( ) { const rawTileBoxes = await fetch ( COPYRIGHT_URL ) . then ( response => response . json ( ) ) ; return rawTileBoxes . normal . map ( attr => ( { ... attr , boxes : attr . boxes . map ( box => L . latLngBounds ( L . latLng ( box [ 0 ] , box [ 1 ] ) , L . latLng ( box [ 2 ] , box [ 3 ] ) ) ) , } ) ) ; }
Fetches attribution objects from the attribution endpoint (currently the raw API).
Fetches attribution objects from the attribution endpoint ( currently the raw API ) .