mapbox / mapbox/mapbox-maps-ios

[CustomGeometrySourceOptions] No tile bounds callback available like previous versions

Open
#867 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Hello,

Mapbox v10.1

There is no callback that provides the lat lng bounds of the tile. Only the x, y, z of the tile.

https://docs.mapbox.com/ios/maps/api/10.1.0/Classes/Style.html#/s:10MapboxMaps5StyleC23addCustomGeometrySource6withId7optionsySS_So09MBMCustomfG7OptionsCtKF

The previous versions had it: https://docs.mapbox.com/ios/maps/api/6.4.1/Protocols/MGLComputedShapeSourceDataSource.html

Is there a helper or a way to still get the lat lng bounds of the tile from the x, y, z values?

Thanks.

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 with the current CustomGeometrySourceOptions API in the Mapbox v10.1 documentation and compare it with MGLComputedShapeSourceDataSource in the linked v6.4.1 documentation. Investigate whether tile x, y, and z values expose a supported bounds helper or whether a callback is needed; done when the supported approach or required API change is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
api, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.