maptalks / maptalks/maptalks.js

migrate to mapbox's expression

Open
#706 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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验证过


期望:
image
放大后:
image
结果:
image


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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.