maptalks / maptalks/maptalks.js
migrate to mapbox's expression
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 4.5k
- Forks
- 511
- Avg merge
- 3d 58m
- Merged PRs (30d)
- 1
Description
maptalks v0.40.4
chrome v67.0.3396.99
数据:
{"type":"Feature","geometry":{"coordinates":[87.416234,43.888077],"type":"Point"},"properties":{"t":"头屯河公园","z":15}}
过滤器:
filter: ['>=', ['zoom'],['number', ['get', 'z']]]
期望:根据 z 值通过 filter 设置显示层级
结果:没有起作用,并且破坏了原有的 symbol 设置
过滤器已在mapbox验证过
期望:

放大后:

结果:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported filter behavior with maptalks v0.40.4 in Chrome using the supplied GeoJSON feature and expression. Trace the filter handling for ['>=', ['zoom'], ['number', ['get', 'z']]] and compare it with the verified Mapbox behavior. Done means the z value controls the display level without breaking the existing symbol settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100