Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 699 Bytes

urlUtils.MD

File metadata and controls

30 lines (15 loc) · 699 Bytes

urlUtils

A utility module containing common methods used to parse URL parameters and convert them into a usable instance.

Methods

parseViewComponents(components: string) : string[]

Parses the components string into an array of view ui components.

parseViewpoint(viewpoint: string) : Camera

Parses a viewpoint string into a Camera.

parseCenter(center: string): Point

Parses a center string into a Point.

parseLevel(level: string) : number

Parses a level string into an integer.

parseExtent(extent: string) : Extent

Parses an extent string into an Extent.

parseMarker(marker: string): Promise<Graphic>

Parses a marker string into a Graphic.