Class: TrafficCameraPopupInteraction

alk.interaction.TrafficCameraPopupInteraction

An object of this class provides a means by which users may interact with features on the map that are traffic cameras or clusters of traffic cameras, providing tooltips and clickable popups.

new alk.interaction.TrafficCameraPopupInteraction(opt_options)

This constructor creates an Interaction object that allows its user to interact with traffic cameras that exist in the layer.

Option Type Description
trafficCameraMetadataCache alk.source.TrafficCameraMetadataCache

This option contains the traffic camera meta data cache to use. If this option is undefined, one will be created with the trafficCameraMetadataService option.

trafficCameraMetadataService alk.service.TrafficCameraMetadataService

This option contains the traffic camera meta data service to use if no traffic camera meta data cache is supplied. If this option is undefined, a traffic camera meta data cache will be created with the default TrafficCameraMetadataService without options.

Extends

  • ol.interaction.Interaction

Methods

removeOverlays(map)

This method removes any of the overlays that were placed on the map.

Name Type Description
map ol.PluggableMap