Hello I need to display some text below each point from a GeoJson layer in an OpenLayers map. I have a GeoJson source and I'm able to plot Points at right coordinates on the map. I would like to draw also some text below the Point and the text is from a property.
My GeoJson is like this:
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"name": "example text"}
},
{... other features ... }
]
}
And I need to display the text "example text" below the Point. How to do that?