分析 Custom Animation 这个 demo,官网介绍是:
This example shows how to use postrender and vectorContext to animate features. Here we choose to do a flash animation each time a feature is added to the layer.
此示例演示如何使用 postrender 和 vectorContext 对要素进行动画处理。 做法是当一个要素被添加到图层时给它添加闪烁效果。
官网实例:Custom Animation
跟我学 OpenLayers——基础实例讲解:12 渲染器机制的使用 > 实例 82.水纹效果