当我使用 openlayers3 嵌入带有 Openstreetmap 的地图时,正在使用什么 API 的 Openstreetmap?

When I use openlayers3 to embed a map with Openstreetmap, what API of Openstreetmap is being used?

我需要使用 openlayers3 在网页中嵌入地图,并且我使用的是 openstreetmap.org 的图块,所以我使用的是什么 API 的 openstreetmap?类似的数据 API 或图像 API?

此外,我应该使用什么许可证?

OpenLayers、Leaflet 和类似库在后台显示 tiles。这些只是图片。

这些图块的许可证取决于您使用的图块服务器。如果您使用 tile.openstreetmap.org,请查看 OSM tile usage policy and Copyright。后一页指出:

The cartography in our map tiles, and our documentation, are licensed under the Creative Commons Attribution-ShareAlike 2.0 license (CC BY-SA).

请注意,这仅适用于 tile.openstreetmap.org 提供的 tiles。其他磁贴服务器将有其他许可证和其他磁贴使用政策。

不要将其与原始 OSM data 混淆,后者在 Open Data Commons Open Database Lizenz (ODbL) 下获得许可。但是,由于您只打算显示 tiles,因此 ODbL 不适用于您。