# Variables
# EPSILON
• Const
EPSILON: 1e-8
= 0.00000001
# EVENTS
• Const
EVENTS: object
# Type declaration
Name | Type |
---|---|
ABORT | string |
ERROR | string |
LOAD | string |
LOAD_END | string |
LOAD_START | string |
PROGRESS | string |
READY_STATE_CHANGE | string |
TIMEOUT | string |
# METHODS
• Const
METHODS: Methods
# httpHelper
• Const
httpHelper: object
# Type declaration
Name | Type |
---|---|
configure | (opts : Partial<Config<unknown>>) => void |
del | (url : string, args? : Partial<Config<unknown>>) => Promise<any> |
event | object |
event.ABORT | string |
event.ERROR | string |
event.LOAD | string |
event.LOAD_END | string |
event.LOAD_START | string |
event.PROGRESS | string |
event.READY_STATE_CHANGE | string |
event.TIMEOUT | string |
get | (url : string, params? : Record<string, any>, args? : Partial<Config<unknown>>) => Promise<any> |
methods | Methods |
options | (url : string, args? : Partial<Config<unknown>>) => Promise<any> |
patch | (url : string, data : any, args? : Partial<Config<unknown>>) => Promise<any> |
post | (url : string, data : any, args? : Partial<Config<unknown>>) => Promise<any> |
put | (url : string, data : any, args? : Partial<Config<unknown>>) => Promise<any> |
rqeust | (args : Partial<Config<unknown>>) => Promise<any> |
# transform
• Const
transform: object
# Type declaration
Name | Type |
---|---|
CRSTypes | typeof CRSTypes |
EpsgCrsTypes | typeof EpsgCrsTypes |
convert | <T>(input : T | string, crsFrom : (pt : GeoPoint) => GeoPoint | CRSTypes, crsTo? : CRSTypes) => T |
getEpsgCode | (coordinate : number | [number, number], crs? : EpsgCrsTypes, is3DegreeBelt? : boolean) => { crs : string ; epsg : string ; is3DegreeBelt : boolean ; proj : undefined | string }[] |
getEpsgParam | (crs : EpsgCrsTypes, lon? : number) => null | { epsg : string ; proj : string } |