import { PointQuery } from 'ol-ishare/interaction/pointquery';
Classes
Methods
(inner) ping(map, layer, point, duration, rgb) → {Promise}
Create 'ping' animation at a given point on a specified map layer Currently requires a feature to be added to the map to trigger the animations
Parameters:
Name | Type | Description |
---|---|---|
map |
ol/Map~Map | OpenLayers map |
layer |
ol/layer~Layer | Layer to apply the ping to |
point |
ol/geom/Point~Point | OpenLayers point geometry for location |
duration |
Number | Time in milliseconds for the animation to last |
rgb |
Array.<Number> | [red, green, blue] values for the colour of the ping |
Returns:
returns Promise to allow chaining of actions after animation finishes
- Type
- Promise