API文档:https://openlayers.org/en/v3.20.1/apidoc/
API 变更政策
OpenLayers 3.x API 包括:
- 类、类方法和属性的名称
- 静态函数和常量的名称
- 函数参数的顺序和类型
- 函数返回值的类型
简介:
地图:一个地图由图层和视图来可视化。交互去修改地图内容并用UI组件控制。
视图:
图层::图层是轻量数据容器,从数据源获取他们的数据
- ol.layer.Tile 瓦片
- ol.layer.Image 影像
- ol.layer.Vector 矢量
- ol.layer.VectorTile 矢量瓦片
控件:
交互: - Map default interactions 地图默认交互
- Interactions for vector features 适量要素交互:
- All interactions 所有交互
数据源和格式: - Tile sources for ol.layer.Tile 瓦片数据源-ol.layer.Tile
- Image sources for ol.layer.Image 影像数据源-ol.layer.Image
- Vector sources for ol.layer.Vector 矢量数据源-ol.layer.Vector
- Vector tile sources for ol.layer.VectorTile 矢量瓦片数据源-ol.layer.VectorTile
- Formats for reading/writing vector data 读写矢量数据- Formats
- ol.format.WMSCapabilities WMS元数据- ol.format.WMSCapabilities
投影:
观察对象:
其他组件: - ol.DeviceOrientation 设备原点
- ol.Geolocation 地理位置
- ol.Overlay 重叠