Remember, from the beginning of the chapter, that we said there were three different ways of specifying styles:
An instance of
ol.style.Style
An array of
ol.style.Style
instancesA style function
We've looked at the first, using ol.style.Style
, in detail. The second, an array of styles, is really not much different from the first, that is, you are still dealing with the basic styles. The difference is that when you provide an array of styles, features are rendered once for each style. This means each feature is rendered more than once, which can provide some interesting effects. An example is probably the best way of illustrating this.