Depending on usage, you'll probably want to provide your own map server rather than rely on (for example) a free OSM one. These can provide the data (including map tiles) that OpenLayers uses to draw its maps.
UMN MapServer and GeoServer are popular. I've found MapServer combined with OpenLayuers a powerful combination.
I've never used GeoServer, but I think it requires serverside Java. And there are other options.
发布评论
评论(2)
OpenLayers 没有数据 - 它是一个开源映射 API,可与许多不同的数据源一起使用。
为了消除所有数据许可问题,请使用 OSM 数据而不是 Google - http://www.openstreetmap.org/ 使用 OpenLayers。请参阅 http://wiki.openstreetmap.org/wiki/OpenLayers#Examples 中的一些示例
OpenLayers has no data - it is an opensource mapping API that can be used with many different data sources.
To be free of all data licensing concerns use OSM data rather than Google - http://www.openstreetmap.org/ with OpenLayers. See some examples at http://wiki.openstreetmap.org/wiki/OpenLayers#Examples
根据使用情况,您可能希望提供自己的地图服务器,而不是依赖(例如)免费的 OSM 服务器。这些可以提供 OpenLayers 用于绘制地图的数据(包括地图图块)。
UMN MapServer 和 GeoServer 很流行。我发现 MapServer 与 OpenLayuers 的结合是一个强大的组合。
我从未使用过 GeoServer,但我认为它需要服务器端 Java。还有其他选择。
Depending on usage, you'll probably want to provide your own map server rather than rely on (for example) a free OSM one. These can provide the data (including map tiles) that OpenLayers uses to draw its maps.
UMN MapServer and GeoServer are popular. I've found MapServer combined with OpenLayuers a powerful combination.
I've never used GeoServer, but I think it requires serverside Java. And there are other options.