mapbox / mapbox/mapbox-gl-js

ShowTileBoundaries doesn't show TMS coordinates

Open
#9,449 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

If you have a TMS vector tile source, but use map.showTileBoundaries = true, you only see the Mapbox/OSM tile numbers, not the TMS tile numbers.

This can be confusing, and is a problem if you're trying to use the displayed tile numbers to navigate towards a particular tile. (That's one of the main use cases for showTileBoundaries for me).

Screen Shot 2020-03-22 at 10 36 54 am

Possible solutions:

  • if there are any vector tile layers with scheme: 'tms', also display the TMS tile coordinates (maybe smaller, maybe prefixed by 'TMS')
  • allow this: map.showTileBoundaries = 'tms'

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 at the map.showTileBoundaries handling and trace how vector tile sources expose their scheme. Determine how TMS coordinates should be displayed alongside or instead of Mapbox/OSM coordinates, then verify that a TMS source makes the displayed tile numbers useful for navigation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.