import * as KMap from '@/utils/ol-map/KMap';
import config from "@/api/config.js";
import Style from 'ol/style/Style';
import Fill from 'ol/style/Fill';
import Text from 'ol/style/Text';
import Icon from 'ol/style/Icon';
import Stroke from 'ol/style/Stroke';
import Feature from 'ol/Feature';
import Point from 'ol/geom/Point';
import {getCenter} from 'ol/extent';
import Polygon from '@/utils/ol-map/Polygon.js'
import * as olProj from 'ol/proj';
import WKT from 'ol/format/WKT'
import MultiPolygon from '@/utils/ol-map/MultiPolygon.js'
import {base_img_url} from '@/api/config'
import { newPoint } from "@/utils/map";
// 预警地图页面
class SampleVectorLayer {
  constructor(map){
    this.selectFeature = null;
    this.map = map.map;
    this.locationId = null
      // this.layer = new KMap.XYZLayer(config.base_img_url3+"map/ggp_point/{z}/{x}/{y}.png", 999, {
      //     minZoom: 12,
      //     maxZoom: 23,
      // })
      // map.addLayer(this.layer.layer);
  }


  loadData(){
      console.log("加载数据")
  }

  setLocationId(locationId){
      this.locationId = locationId;
      this.loadData();
  }

}
export default SampleVectorLayer;
