Global

Methods


addToMap(map, features, projcs)

Parameters:
Name Type Description
map ol.Map

The map on which to display the new layer

features string | Array.<Object>

The features from which to create the new layer

projcs string

The projection

Source:
Returns:

The new layer

Type
ol.layer.Vector

module:nyc/fetchTimeout(url [, timeout])

Function to fetch a URL and fail if the response time exceeds the timeout value

Parameters:
Name Type Argument Default Description
url string

The url to fetch

timeout number <optional>
15000

The timeout in milliseconds

Source:
Returns:

A promise that resolves to the HTTP response object or a timeout error

Type
Promise