/mapview/infotip
- Source
Methods
(inner) Infotip(params, mapview)
The method creates an infotip element that follows the pointer location on the mapview. The content of the infotip can be a string, an HTML element, or an object. If the content is an object, a warning will be logged in the console since it cannot be rendered in the infotip. The infotip is removed when the content argument is falsy or when a new infotip is created.
Parameters:
| Name | Type | Description |
|---|---|---|
params | object | The params object is spread into the interaction defaults. |
mapview | mapview | The mapview object to which the interaction will be added. |
- Source