我想要一个楼层平面层与给定坐标的mapbox。我正在使用react-map-gl。(https://github.com/uber/react-map-gl)。如何在地图上绘制的图像覆盖。你能举出一些例子或别的什么吗?
发布于 2017-09-27 05:43:13
您可以使用source的image类型覆盖图像。例如:
"sources": {
"overlay": {
"type": "image",
"url": "https://www.mapbox.com/mapbox-gl-js/assets/radar.gif",
"coordinates": [
[-80.425, 46.437],
[-71.516, 46.437],
[-71.516, 37.936],
[-80.425, 37.936]
]
}
},
...来自示例here。
https://stackoverflow.com/questions/46412475
复制相似问题