maptalks / maptalks/maptalks.js

Marker 3D depth

Open
#2,097 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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?**
----
maptalks v1.0.0-rc.25
Browsers: firefox & safari

**Issue description**
----
How do I add Markers that have the correct depth when the map is rotated if the map is tilted. All the examples with markers seem to have the same issue that they have there depth set in the order of being added to the layer, so the last one added is the highest so when you rotate and with a tilt it is always on top, when the expected outcome would be that it would go behind other geo on the map if it is further away.
Is there are way around this?

Thanks
Karl

(https://maptalks.org/examples/en/style/polygon-vertex-marker/#style_polygon-vertex-marker)
----

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 linked polygon vertex marker example in Firefox and Safari with the map tilted and rotated. Compare marker ordering with the expected geographic depth behavior; done means markers farther away can render behind nearer map geometry rather than following insertion order.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.