【发布时间】:2023-03-05 00:59:01
【问题描述】:
您好,我需要在 OpenLayers 地图中 GeoJson 图层的每个点下方显示一些文本。我有一个 GeoJson 源,我可以在地图上的正确坐标处绘制点。我还想在 Point 下方绘制一些文本,这些文本来自一个属性。
我的 GeoJson 是这样的:
{ "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
"properties": {"name": "example text"}
},
{... other features ... }
]
}
而且我需要在 Point 下方显示文本“示例文本”。该怎么做?
【问题讨论】:
标签: openlayers geojson