mapbox / mapbox/mapbox-maps-ios

Need Help in coverting a mapbox function

Open
#2,221 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We are converting our app from 10.0.rc6 to 10.18 and seem to be stuck on a conversion.

What is the equivalent of this function I cannot find any documentation on using this with the newer versions of Turf

let point = annotations.feature.geometry.value as! Turf.Point

Geometry no longer has the value enum

We can't convert to version 11 because it breaks our custom polygon dragging. 10.18 seemed like a possible compromise but we ran into this issue among others, it would be great to have some conversion guide or at least update examples like the MultipointAnnotation example between versions,

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 comparing the Geometry API between 10.0.rc6 and 10.18, focusing on the Turf.Point cast shown in the issue. Review the MultipointAnnotation example and determine what migration guidance or example updates are needed for users who cannot move to version 11. Done means the 10.18 conversion path is documented clearly, including the replacement for Geometry.value.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.