Namespace: factory

mapapi. factory

Methods

<static> arcGIS93RestLayer(url) → {Object}

Instantiates a ArcGIS93RestLayer

Parameters:
Name Type Description
url string

the layer URL

Returns:
Type
Object

<static> arcGISCacheLayer(url) → {Object}

Instantiates a ArcGISCacheLayer

Parameters:
Name Type Description
url string

the layer URL

Returns:
Type
Object

<static> coordinate(latitude, longitude) → {Object}

Returns a Coordinate

Parameters:
Name Type Description
latitude number

the latitude value

longitude number

the longitude value

Returns:
Type
Object

<static> geoJsonLayer(id, path) → {Object}

Instantiates a GeoJsonLayer

Parameters:
Name Type Description
id string

a unique key for the layer

path string

the path to the GeoJson file

Returns:
  • GeoJsonLayer
Type
Object

<static> image(url, width, height) → {Object}

Returns an Image

Parameters:
Name Type Description
url

the image URL

width

the image width in pixels

height

the image height in pixels

Returns:
Type
Object

<static> kmlLayer(id, path) → {Object}

Instantiates a KMLLayer

Parameters:
Name Type Description
id string

a unique key for the layer

path string

the path to the KML file

Returns:
Type
Object

<static> wmsLayer(id, url, layers) → {Object}

Instantiates a WMSLayer

Parameters:
Name Type Description
id string

a unique key for the layer

url string

the layer URL

layers Array

an array of the layer names to add

Returns:
Type
Object

<static> wmtsLayer(id, url, layer, matrixSet, style) → {Object}

Instantiates a WMTSLayer

Parameters:
Name Type Description
id string

a unique key for the layer

url string

the layer URL

layer string

the layer name

matrixSet string

the matrix set

style string

the style

Returns:
Type
Object
©2014 United States Government, all rights reserved. Powered by InnoVision, created by the GIAT.
Documentation generated by JSDoc 3.3.0 on Wed May 13th 2015 using the DocStrap template.