Comparing version 1.0.23 to 1.0.24
{ | ||
"name": "venus-map", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "tq-fed-map", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -7,6 +7,6 @@ import Vector from 'ol/source/Vector' | ||
import coordinateTransfer from '../util/coordinateTransfer' | ||
import EventBus from '../components/EventBus' | ||
import uuid from '../util/uuid' | ||
import Select from 'ol/interaction/Select' | ||
import * as condition from 'ol/events/condition' | ||
import TLayer from '../bean/TLayer' | ||
@@ -26,9 +26,8 @@ // 常量 | ||
export default class AreaLayer extends EventBus { | ||
export default class AreaLayer extends TLayer { | ||
constructor(map, opt = {}) { | ||
super() | ||
this.uuid = uuid() | ||
super(map) | ||
this.layerName = `area-layer-${this.uuid}` | ||
this.option = opt | ||
this.map = map | ||
this.features = [] | ||
this.initOption(opt) | ||
@@ -72,10 +71,2 @@ this.initLayer() | ||
setHoverCursor() { | ||
this.map.tMap.baseViewControl.addCursorLayers(this.layer) | ||
} | ||
unsetHoverCursor() { | ||
this.map.tMap.baseViewControl.removeCursorLayer(this.layer) | ||
} | ||
/** | ||
@@ -82,0 +73,0 @@ * 添加单个Feature |
@@ -8,6 +8,6 @@ import Cluster from 'ol/source/Cluster' | ||
import coordinateTransfer from '../util/coordinateTransfer' | ||
import EventBus from '../components/EventBus' | ||
import uuid from '../util/uuid' | ||
import Select from 'ol/interaction/Select' | ||
import * as condition from 'ol/events/condition' | ||
import TLayer from '../bean/TLayer' | ||
@@ -31,9 +31,7 @@ // 常量 | ||
export default class ClusterLayer extends EventBus { | ||
export default class ClusterLayer extends TLayer { | ||
constructor(map, opt = {}) { | ||
super() | ||
super(map) | ||
this.option = opt | ||
this.uuid = uuid() | ||
this.layerName = `cluster-layer-${this.uuid}` | ||
this.map = map | ||
this.initOption(opt) | ||
@@ -70,10 +68,2 @@ this.initLayer() | ||
setHoverCursor() { | ||
this.map.tMap.baseViewControl.addCursorLayers(this.layer) | ||
} | ||
unsetHoverCursor() { | ||
this.map.tMap.baseViewControl.removeCursorLayer(this.layer) | ||
} | ||
/** | ||
@@ -80,0 +70,0 @@ * 添加单个Feature |
@@ -7,6 +7,6 @@ import Vector from 'ol/source/Vector' | ||
import coordinateTransfer from '../util/coordinateTransfer' | ||
import EventBus from '../components/EventBus' | ||
import uuid from '../util/uuid' | ||
import Select from 'ol/interaction/Select' | ||
import * as condition from 'ol/events/condition' | ||
import TLayer from '../bean/TLayer' | ||
@@ -30,9 +30,7 @@ // 常量 | ||
export default class MarkerLayer extends EventBus { | ||
export default class MarkerLayer extends TLayer { | ||
constructor(map, opt = {}) { | ||
super() | ||
super(map) | ||
this.option = opt | ||
this.uuid = uuid() | ||
this.layerName = `marker-layer-${this.uuid}` | ||
this.map = map | ||
this.initOption(opt) | ||
@@ -67,10 +65,2 @@ this.initLayer() | ||
setHoverCursor() { | ||
this.map.tMap.baseViewControl.addCursorLayers(this.layer) | ||
} | ||
unsetHoverCursor() { | ||
this.map.tMap.baseViewControl.removeCursorLayer(this.layer) | ||
} | ||
/** | ||
@@ -77,0 +67,0 @@ * 添加单个Feature |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3082011
90
4499