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

Function drawPointLayer

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

Source from the content-addressed store, hash-verified

237 }
238 },
239 async drawPointLayer () {
240 this.pointLayer = new L7.PointLayer({})
241 .source(this.data, {
242 parser: {
243 type: 'csv',
244 x: 'Longitude',
245 y: 'Latitude',
246 }
247 })
248 .shape('circle')
249 .active(this.option.active)
250 .animate(this.option.animate)
251 .size(56)
252 .color(this.option.color)
253 .style({
254 opacity: this.option.opacity
255 });
256 this.scene.addLayer(this.pointLayer)
257 },
258 async initData () {
259 if (this.option.data.length === 0) {
260 const defaultData = await axios.get('https://gw.alipayobjects.com/os/basement_prod/9078fd36-ce8d-4ee2-91bc-605db8315fdf.csv')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected