a unique name used as reference to the layer
Optional
options: {properties: alerts: optional initial data as a GeoJSON FeatureCollection clusterPixelDistance: pixels between features to group together in the same cluster. default is 120
Add tile layer for cities. By default, tiles are loaded from the Waze Node Mapnik server matching the deployment environment and region code.
Add features to Waze Closure objects layer
a unique name used as reference to the layer
GeoJSON FeatureCollection to add
Add layer to map for Waze Closure objects
a unique name used as reference to the layer
Optional
options: { closures?: FeatureCollection<Geometry, GeoJsonProperties> }properties: closures: optional initial data as a GeoJSON FeatureCollection
Creating an instance of OpenLayers.Control is discouraged and will be removed. Instead, either implement a shared control internally and expose it via the map API, or create an external element which relies on the existing map API functions.
Add a control to the map. Optionally position the control at the given pixel.
The controls options: displayClass - a class name to add to the control container HTML element control - the OpenLayers.Control to add to the footer
Add a layer for arbitrary geospatial data. Use a data layer to display custom data on the map. Data can be any valid GeoJSON object.
a unique name used as reference to the layer
Optional
options: {optional object with the following optional properties: geoJSON: initial data in GeoJSON format to add to the layer wkt: initial data in WKT format to add to the layer style: custom style for features drawn in this layer
Add Earth Engine tile layer.
unique name to reference the layer
EarthEngineVersion to use in the Earth Engine url
callback function to return map-id and TTLMsec
Optional
project: string(optional) - project to use in the Earth Engine url
Add GeoJSON data to a data layer.
the layer name to add data to
the GeoJSON data to add to the layer
Add tile layer for GPS points. By default, tiles are loaded from the Waze Node Mapnik server matching the deployment environment and region code.
Adds a graticule (grid) control to the map.
Add a HTML marker at a location on the map. HTML markers can be added only to HTML marker layers.
the HTML marker layer name to add the marker to
lon/lat indicating where to place the marker
Optional
options: { classNames?: string[] }contains an optional CSS classes to add to the marker HTML element
the marker id which can be used as a reference to the marker
Add a layer for HTML markers. Use a marker layer to display HTML markers on the map.
a unique name used as reference to the layer
Optional
options: HTMLMarkerLayerOptionscontains an optional CSS classes to add to the layer root
an HTMLMarkerLayer instance
Add layer to map for Waze Jam objects
a unique name used as reference to the layer
Optional
options: { jams?: FeatureCollection<Geometry, GeoJsonProperties> }properties: jams: optional initial data as a GeoJSON FeatureCollection
Add a link to the map footer
link href value
link title to display
Optional
options: { elAttributes?: Record<string, string> }optional object with the following optional properties: elAttributes - additional attributes to add to the link anchor tag
Add Waze Livemap tile layer. Tiles are loaded from the Waze Livemap Mapnik server matching the deployment environment and region code.
unique name to reference the layer
Add a marker at a location on the map. Markers can be added to any data layer.
the layer name to add the marker to
lon/lat or GeoJSON geometry of the marker
Optional
options: { style?: FeatureStyle; useLayerStyle?: boolean }containes optional style: custom style for marker
Optional
attributes: Record<string, string | number | boolean>the marker id which can be used as a reference to the marker
Add markers at a location on the map. Markers can be added to any data layer.
the layer name to add the marker to
object with marker position and optional style
an array of marker ids which can be used as a reference to the marker
Adds a navigation control to the map. The navigation control handles map browsing and zooming with mouse events (dragging, double-clicking, and scrolling the wheel).
Add a layer to display pre-rendered tiles arranged by a standard XYZ grid, loaded from a URL
a unique name used as reference to the layer
an object with the layer URL properties:
servers (string[]) - array of server domains (e.g. ["https://editor-tiles-na-1.waze.com", "https://editor-tiles-na-2.waze.com"])
fileName (string) - file path template with XYZ parameters (e.g. tiles/gps/${z}/${x}/${y}/tile.png
)
params (object)
configuration options for layer rendering
Add tile layer for roads. By default, tiles are loaded from the Waze Node Mapnik server matching the deployment environment and region code.
Adds a measure-over-a-path control and returns a handle. Call destroy
method of the handle to remove the control from the map.
Optional
props: RulerProps<MS>Ruler props
Ruler control handler
Add a scale line to the map footer indicating the currently viewed map scale
if true, the scale will be displayed in imperial units
The name of editable layer. Features from this layer that are digitized or modified may have vertices snapped to the features of the target layer.
The name of the target layer.
Optional
snapOnlyToEdges: boolean(optional) Whether snapping is only occurs to the edges
Use the SnappingHandler instead. Adds a snapping control to the map.
Add Webtiles tile layer for cities polygons. By default, tiles are loaded from the Webtiles server matching the deployment environment and region code.
unique name to reference the layer
Add Webtiles tile layer for GPS points. By default, tiles are loaded from the Webtiles server matching the deployment environment and region code.
unique name to reference the layer
Add Waze Webtiles Livemap tile layer. Tiles are loaded from the Waze Webtiles server matching the deployment environment and region code.
unique name to reference the layer
Add Webtiles tile layer for roads. By default, tiles are loaded from the Webtiles server matching the deployment environment and region code.
unique name to reference the layer
Add WKT data to a data layer.
the layer name to add data to
the WKT data to add to the layer
Adds a zoom control to the map. The zoom control is a pair of +/- links for zooming in and out.
Create a draw control instance
A control handler
Create a draw ellipse control instance
Optional
options: EllipseHandlerOptionsA control handler
Add a snapping control to the map. It allows to snap features to other features on the map.
The SnappingHandler config.
a new snapping handler
Optional
options: WazeFeatureLayerOptions<F>Destroy the current map and all its dependencies. This will remove all layers and controls from the map.
Optional
options: EllipseHandlerOptionsDraw a feature on the map in a given layer. Click on the map to draw the feature based on the geometry. For lines or polygons, double-click to finish drawing, or hold down the shift key while drawing to activate freehand mode.
Shorthand for drawFeature("layer", "line", options) See documentation for drawFeature
Contains the layer name
Shorthand for drawFeature("layer", "point", options) See documentation for drawFeature
Contains the layer name
Shorthand for drawFeature("layer", "polygon", options) See documentation for drawFeature
Contains the layer name
Get a feature from layer in WKT format
the layer name to get feature from
the feature to retrieve
feature in WKT format
Get first feature from layer found at specific point
the layer name to get feature from
feature position
first feature found at point or null if there are none from the layer
Get a feature from a layer by the feature id
the layer name to retrieve from
the feature to retrieve
the feature with the id, or null if it does not exist in the layer
Get all features currently in a layer as a FeatureCollection
the layer name to retrieve features from
FeatureCollection
Get the layer features in WKT format
the layer name to add data to
all the features currently in the layer in WKT format
Get all features from layer at specific point
the layer name to get features from
feature position
feature collection of features found at point
Get a FeatureCollection with features matching a property key/value in the layer
the layer name to retrieve from
the name of the property to match
the value of the property to match
The property values are compared using strict equality (i.e. ===
).
a FeatureCollection with matching features
Get a container HTML element of the HTML marker previously added to the map.
the name of the marker layer
id of the marker to get the container for
a HTML marker element
Get an HTMLMarkerLayer instance by layer name.
the name of the HTMLMarkerLayer
an HTMLMarkerLayer instance
the map navigation control if exists, otherwise null
the underlying OpenLayers.Map instance
Move an existing HTML marker to the new location on the map.
the name of the HTML marker layer that contains the marker
id of the marker
lon/lat indicating where to place the marker
Pan the map down
Pan the map left
Pan the map right
Pan the map up
Redraw a feature based on new data
the layer including the feature
the updated feature data Redrawing a feature is supported only for features with an 'id' property. If no feature with the passed 'id' is found in the layer, nothing will happen.
the map event to register
the handler to register
Optional
scope: unknown(optional) the execution scope of the registered handler
the map event to register
the handler to register
Optional
scope: unknown(optional) the execution scope of the registered handler
the map event to register
the handler to register
Optional
scope: unknown(optional) the execution scope of the registered handler
Register a snapping control event handler
the snapping event to register
the handler to register
Use the SnappingHandler instead.
Remove all features from a layer
the layer to remove features from
Remove all HTML markers from a HTML marker layer
the HTML marker layer name to remove markers from
Remove a feature from a layer by feature id
the layer including the feature
the feature id to remove
Remove features from a layer with matching property name and value
the layer to remove features from
the name of the property to match
the value of the property to match
The property values are compared using strict equality (i.e. ===
).
Removes the graticule (grid) control from the map.
Remove a HTML marker from a HTML marker layer
the HTML marker layer name to remove the marker from
id of the marker to remove
Optional
setNewBaseLayer: booleanRemove a layer previously added to the map.
the name of the layer to remove
Remove a marker from a layer
the layer name to remove the marker from
id of the marker to remove
Render the map to a specified container.
id of the DOM element to render the map into
Set arrow markers on the segments of equal distance along the line
the layer name to set arrow markers to
features of linestring indicating the lines to place the arrow markers
distance between arrow markers
style for arrow markers
Stop drawing a feature on the map.
the map event to register
the handler to register
Optional
scope: unknown(optional) the execution scope of the registered handler
the map event to unregister
the handler to unregister
Optional
scope: unknown(optional) the scope of the registered handler
Unregister a snapping control event handler
the snapping event to unregister
the handler to unregister
Use the SnappingHandler instead.
Optional
closest: booleanOptional
closest: boolean
Add layer to map for Waze Alert objects