Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 898 Bytes

urlUtils.MD

File metadata and controls

34 lines (17 loc) · 898 Bytes

urlUtils

A utility module containing common methods used to parse URL parameters and convert them into their appropriate class instance or formatting.

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): IPromise<Graphic>

Parses a marker string into a Graphic.

parseBasemap(basemapUrl: string, basemapReferenceUrl: string): IPromise<Basemap>

Parses a basemapUrl string and basemapReferenceUrl string into a Basemap.