This (silly) picture summarizes the issue I'm having:
These are rendered in a vector layer.
Below these shields is a line string that I render once as-is (i.e. as a line), and on top of it I also render it using a style that has a geometry function defined. In that function, I return a ol.geom.MultiPoint containing the coordinates where I want shields to be added alongside the line.
My above demonstration is silly, I know (i.e. in my real use case, the gap between the shields is way bigger, so I know I won't have any collision).
The thing is, I'm aware that there's normally a way to avoid this kind of behaviour with the zIndex property of the ol.style.Style, i.e. if each feature has its own style defining a different zIndex, then each shield+text would be correctly rendered with text below overlapping shields. But, this can't work with a geometry method, as the same style is used multiple times for the same feature to render it multiple times.
Like I said, since I'll define a big enough gap to avoid collisions anyway I don't really need to figure a way to fix this issue, but I'm curious if there is one, for my future self and other people that would like to know.
