我试着去了解什么是什么,但我有点困惑:开放街道地图API - 打开图层/ MapQuest的
OpenStreetMap的是免费使用的地图。可能的API这个地图是:
-OpenLayer
-MapQuest
为什么OpenLayer使用MapQuest的代码OpenLayer例如: http://openlayers.org/en/v3.1.1/doc/quickstart.html
<script type="text/javascript">
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.MapQuest({layer: 'sat'})
})
],
view: new ol.View({
center: ol.proj.transform([37.41, 8.82], 'EPSG:4326', 'EPSG:3857'),
zoom: 4
})
});
</script>
也许这个问题很奇怪,但我想知道为什么一个API的使用来自别人的表达?
谢谢。这正是我所期待的。 – Radek 2015-01-10 14:55:43