openlayer:
overview--- 创建动态地图(put a dynamic map in any web pag) map tiles:地图块(瓦片)
vector data and markers:openlayer支持从任何源加载矢量数据和标记
feature---
feature 是要素的意思,简单要素,就是点线面等组成gis(Geographic Information System或 Geo-Information system,GIS)图形信息的基本要素
openlayers起航:
1、初始化地图
/**
*地图初始化
* 1、创建瓦片图层
* 2、定义视角
*/
initMap() {
let mapObj = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM({
url: url //瓦片地址
})
}) ,
new TileLayer({
source: new TileArcGISRest({
url: url //地理位置名称信息
})
}) ,
]
})
}