To round out our understanding of the image styles, redo the previous example using ol.style.Circle
instead of ol.style.Icon
as the image property of the earthquake style. Your result should look something like this (depending on what values you choose):
We saw the text style in action in the first example, and we also saw that it wasn't very useful to include a static text style—at least in that example. In general, text styles will be much more useful when the text that is displayed is derived from some property of the feature being displayed. We'll look at how to do that at the end of the chapter, so for now, let's finish up the basic style section with the properties available to text styles: