index.js 516 B

1234567891011121314151617181920
  1. import * as KMap from "@/utils/ol-map/KMap";
  2. import * as util from "@/common/ol_common.js";
  3. /**
  4. * @description 地图层对象
  5. */
  6. class IndexMap {
  7. constructor() {
  8. let that = this;
  9. let vectorStyle = new KMap.VectorStyle();
  10. this.vectorStyle = vectorStyle;
  11. }
  12. initMap(location, target) {
  13. let level = 18;
  14. let coordinate = util.wktCastGeom(location).getFirstCoordinate();
  15. this.kmap = new KMap.Map(target, level, coordinate[0], coordinate[1], null, 12, 22);
  16. }
  17. }
  18. export default IndexMap;