Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

venus-map

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

venus-map - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

src/bean/TLayer.js

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc