import * as KMap from "@/utils/ol-map/KMap"; import * as util from "@/common/ol_common.js"; /** * @description 地图层对象 */ class IndexMap { constructor() { let that = this; let vectorStyle = new KMap.VectorStyle(); this.vectorStyle = vectorStyle; } initMap(location, target) { let level = 18; let coordinate = util.wktCastGeom(location).getFirstCoordinate(); this.kmap = new KMap.Map(target, level, coordinate[0], coordinate[1], null, 12, 22); } } export default IndexMap;