addInteraction

Add the map interaction (e.g. clicking / long clicking map features or map surface). Most common interactions are ClickInteraction and LongClickInteraction.

Return

Cancelable object. Call Cancelable.cancel when the interaction is not needed anymore. Note: destroying the map will cancel all registered interactions.

Parameters

interaction

any concrete implementation of base MapInteraction.