Global

Methods

# async executeInBatches(requests, batchSize) → {Promise.<Array>}

Executes an array of requests in batches.

Parameters:
Name Type Description
requests Array.<Promise>

The requests to execute.

batchSize number

The size of the batch.

  • The results of the requests.
Promise.<Array>

# getIconZoomRange()

Get union zoom range for icon+badge (icon view model shows when either is in range).

# hasContextSwitch(leg) → {boolean}

Checks if the given leg represents a context switch.

Parameters:
Name Type Description
leg Leg

The route leg to check for context switch.

Returns true if the leg is a context switch, false otherwise.

boolean

Hides the map provider's branding (logo and attribution control) by injecting a single, idempotent