MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / drawPointerLayer

Function drawPointerLayer

public/iframe/lib/js/mixinsMap.js:328–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 },
327 methods: {
328 drawPointerLayer () {
329 this.pointLayer = new L7.PointLayer({}).source(this.data, {
330 parser: {
331 type: 'csv',
332 y: 'lat',
333 x: 'lng'
334 }
335 }).size(this.option.size).color(this.option.color).style({
336 stroke: this.option.stroke,
337 strokeWidth: this.option.strokeWidth,
338 opacity: this.option.opacity
339 })
340 this.scene.addLayer(this.pointLayer)
341 },
342 async initData () {
343 if (this.option.data.length === 0) {
344 const defaultData = await axios.get('./excel/pointerCity.text')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected