maptalks / maptalks/maptalks.heatmap

vue中添加数据报错误 “t is not defined”

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
52
Forks
18
PR merge metrics
No merged PRs in 30d

Description

添加数据时就报错误 “t is not defined”(使用setData()、addPoint()都会报错,即使创建HeatLayer图层时传入数据均会报错),不添加数据只创建HeatLayer不报错。请问一下这个是调用的姿势不正确还是bug?
传入的数据和报错见下图
![image](https://user-images.githubusercontent.com/120165435/206650570-c1584b3e-2680-402f-8765-a124fe309d96.png)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error with a HeatLayer using setData(), addPoint(), and constructor data, using the attached screenshot as the reported failure. Trace where the “t is not defined” error occurs and verify that creating a HeatLayer with data no longer raises it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.