mapbox / mapbox/mapbox-maps-ios
[CustomGeometrySourceOptions] No tile bounds callback available like previous versions
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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