-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't appear to be a way to use in iOS #1
Comments
I haven't used it with Apple map. Is it use CGPath api? |
No worries about the Apple map stuff. If it returns a CGPath, I can convert that for usage in which a map can use.
Which part returns a CGPath?
There is this code: let union = graph.extractShapes(overlayRule: OverlayRule.union)
But I can’t tell what union will contain as there isn’t any details on what it returns.
What will happen if you tell it to union 2 shapes who do not overlay each other?
Thanks,
Micah
On Mar 14, 2024, at 9:20 AM, Nail ***@***.***> wrote:
Caution: This email originated from outside of TTI. Do not click links or open attachments unless you recognize the sender and know the content is safe.
This Message Is From an External Sender
This message came from outside your organization.
I haven't used it with Apple map. Is it use CGPath api?
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/iShape-Swift/iOverlay/issues/1*issuecomment-1997570875__;Iw!!KwNVnqRv!GpQVADmJB7KhQzsYB02hopiP3l2UcSu4YAGFTwG1LaW457aI65tOiMETg2RC4XWoVri6eDyhOouHQBF1cQrGcfxIaEE$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACN7VY4FSZIOQPBKCOVGDC3YYGW25AVCNFSM6AAAAABENI5G52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGU3TAOBXGU__;!!KwNVnqRv!GpQVADmJB7KhQzsYB02hopiP3l2UcSu4YAGFTwG1LaW457aI65tOiMETg2RC4XWoVri6eDyhOouHQBF1cQrGnl0eBPI$>.
You are receiving this because you authored the thread.
This message originated from outside your organization.
|
let union = graph.extractShapes(overlayRule: OverlayRule.union) here union is [FixShape] FixShape itself is a struct to represent polygon and it's holes in int coordinate system. Result of 2 not intersecting shapes will be still 2 shapes. Have you played with this demo? |
Looks promising but I don't see a way to use this in a iOS app. Can you elaborate on how to translate the [FixShape] returned to a format in which iOS Mapkit understands? The paths it contains don't appear valid for usage.
The text was updated successfully, but these errors were encountered: