Class: Waze

nyc/ol/format/Waze~ Waze


new Waze(options)

Create an instance of CartoSql

Parameters:
Name Type Description
options module:nyc/ol/format/Waze~Waze.Options

Constructor options

Source:
See:

Extends

  • ol.format.Feature

Methods


getLastExtent()

Get the extent from the source of the last readFeatures call

Source:
Returns:

The extent

Type
ol.Extent

getType()

Return format type

Source:
Returns:

The format type

Type
ol.format.FormatType

readFeature(source)

Read a single feature from a source

Parameters:
Name Type Description
source Object

A Waze alert or jam object

Source:
Returns:

Feature

Type
ol.Feature

readFeatures(source)

Read all features from a source

Parameters:
Name Type Description
source string

Response from a Carto SQL data source

Source:
Returns:

Features

Type
Array.<ol.Feature>

readProjection(source)

Read the projection from a source

Parameters:
Name Type Description
source Document | Node | Object | string

Source

Source:
Returns:

The projection

Type
ol.proj.Projection

Type Definitions


Options

Constructor options for module:nyc/ol/format/Waze~Waze

Type:
  • Object
Properties:
Name Type Argument Default Description
featureProjection string <optional>
EPSG:3857

The feature projection needed for the map

Source: