| | |
| | | export const MARKER_OVERLAY_CLASS_NAME = 'marker-overlay'; |
| | | |
| | | export const gaoDeSourceTypeMap = { |
| | | [GaoDeSourceType.Default]: '默认地图', |
| | | [GaoDeSourceType.Satellite]: '影像地图', |
| | | [GaoDeSourceType.Vector]: '矢量地图', |
| | | [GaoDeSourceType.SatelliteRoad]: '影像路网', |
| | | // [GaoDeSourceType.Default]: '默认地图', |
| | | [GaoDeSourceType.Vector]: '标准地图', |
| | | |
| | | [GaoDeSourceType.Satellite]: '卫星地图', |
| | | [GaoDeSourceType.SatelliteRoad]: '路网地图', |
| | | }; |
| | | |
| | | export const getGaoDeSourceUrl = (type: GaoDeSourceType, lang: LangType = 'zh_cn') => { |
| | |
| | | olZoom.style.display = 'none'; |
| | | } |
| | | |
| | | /** |
| | | * 放大地图 |
| | | */ |
| | | zoomIn() { |
| | | const view = this.map.getView(); |
| | | const zoom = view.getZoom(); |
| | | view.setZoom(zoom + 1); |
| | | } |
| | | |
| | | /** |
| | | * 缩小地图 |
| | | */ |
| | | zoomOut() { |
| | | const view = this.map.getView(); |
| | | const zoom = view.getZoom(); |
| | | view.setZoom(zoom - 1); |
| | | } |
| | | |
| | | getWMTS = () => { |
| | | const projection = getProjection('EPSG:3857'); |
| | | const projectionExtent = projection.getExtent(); |