Home Manual Reference Source Repository
import {GeoBoundary} from '@mapcreator/api/src/utils/geo.js'
public class | source

GeoBoundary

Geometric boundary

Constructor Summary

Public Constructor
public

constructor(topLeft: Object, bottomRight: Object)

Geometric boundary

Member Summary

Public Members
public
public

topLeft: *

Method Summary

Public Methods
public

getCenter(): *

Public Constructors

public constructor(topLeft: Object, bottomRight: Object) source

Geometric boundary

Params:

NameTypeAttributeDescription
topLeft Object

top left corner of the boundary

topLeft.lat Number

top left corner latitude

topLeft.lng Number

top left corner longitude

bottomRight Object

bottom right corner of the boundary

bottomRight.lat Number

bottom right corner latitude

bottomRight.lng Number

bottom right corner longitude

Public Members

public bottomRight: * source

public topLeft: * source

Public Methods

public getCenter(): * source

Return:

*