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

Function initData

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

Source from the content-addressed store, hash-verified

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')
261 this.data = defaultData.data
262 } else {
263 this.data = this.option.data
264 }
265 },
266 init () {
267 const mapConfig = {
268 style: "amap://styles/7e3bb5bc6ed4019b2fe41a29167fd026", // 样式URL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected