Label on MVT vs Geojson

Open
#13,071 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Reproduce the discrepancy using the linked CodeSandbox, starting with main.js and comparing the MVT and GeoJSON layers at the shared opacity of 0.3. Trace how labels are rendered and decluttered for each source format. Done means labels have identical rendering across the two formats while preserving the expected tile-related behavior.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
The label is rendered differently if the source format is MVT or Geojson. The two layers share the same opacity (0.3).
I do not expect to have the same labels.. I know that on MVT, the label will be shown on each tile.... The issue, is really about the rendering...

To Reproduce
https://codesandbox.io/s/vector-label-decluttering-forked-rw81w?file=/main.js

Expected behavior
Label should look identical on various formats.

Dominant language
JavaScript
Stars
12.6k
Forks
3.2k
Avg merge
2d 17h
Merged PRs (30d)
21

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.

More from openlayers/openlayers

All issues in openlayers/openlayers

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.