maptalks / maptalks/maptalks.js

在 debug 模式时,瓦片 debug 边线绘制出错

Open
#2,188 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
4.5k
Forks
511
Avg merge
3d 58m
Merged PRs (30d)
1

Description

**maptalks's version and what browser you use?**
----
1.0.0-rc.28

**Issue description**
----

```js
const rasterLight = new maptalks.TileLayer('light', {
urlTemplate: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
subdomains: ['a', 'b', 'c', 'd'],
debug: true,
});
```

在 debug 模式时,瓦片 debug 边线绘制出错(仅出现在 gl 模式)

![image](https://github.com/maptalks/maptalks.js/assets/19517451/d49670ba-7f26-4421-8186-521058405e59)

**Please provide a reproduction URL (on any jsfiddle like site)**
----

https://codepen.io/sakitam-fdd/pen/LYaxpmx

Contributor guide

Open the contributing guide

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 with the CodePen reproduction and the TileLayer debug option shown in the issue, comparing normal and GL modes. Trace how tile debug borders are drawn and verify the result against the provided screenshot. Done means the debug borders render correctly in GL mode without affecting normal tile display.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.