Skip to content

Function: clampLocation() ​

ts
function clampLocation(
   latitude, 
   longitude, 
   zoom?
): MapLocation;

Defined in: location.ts:72

Normalize coordinates before projection or sharing a map link.

Parameters ​

ParameterTypeDefault value
latitudenumberundefined
longitudenumberundefined
zoom?number15

Returns ​

MapLocation

Released under the GNU Affero General Public License v3.0.