Methods
-
addToMap(map, features, projcs)
-
Parameters:
Name Type Description mapol.Map The map on which to display the new layer
featuresstring | Array.<Object> The features from which to create the new layer
projcsstring 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 urlstring The url to fetch
timeoutnumber <optional>
15000 The timeout in milliseconds
- Source:
Returns:
A promise that resolves to the HTTP response object or a timeout error
- Type
- Promise