-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
MLNStyleLayerDrawingContext not available #2099
Comments
Note that OpenGL ES is no longer supported on iOS since the 6.0.0 release. For development of the Metal renderer, OpenGL was kept around, but we'll be moving towards removing it completely from the iOS sources. |
Understood, I'm compiling with the metal flag here. |
Isn't it named |
Sorry, copied old file, updated. |
Yeah this might be a limitation of Swift's Objective-C interoperability. Thanks for trying it out. Could you remove the |
@louwers yep that did the trick. |
@bsudekum OK maybe @stefankarschti can think of a Swift-compatible interface. |
@stefankarschti it works! thanks for working through this. |
@stefankarschti found a slight bug. With the above code, there is a pretty massive memory leak if you just simulate the highway drive: |
Yep, that's on me 😄 |
@stefankarschti cool that worked! |
Could you please tell me how to set compiling with metal flag in iOS project? |
Please create a new Discussion or Issue for unrelated problems. @thothai94 But you can generate the Xcode project with:
https://github.com/maplibre/maplibre-native/blob/main/platform/ios/README.md#developing |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
MGLOpenGLStyleLayer
I think the
note: record...
record bit is a good clue. I'm wondering if this is not available in Swift, rendering the whole struct (MLNStyleLayerDrawingContext) invalid:maplibre-native/platform/darwin/src/MLNCustomStyleLayer.h
Lines 27 to 29 in 6ae0e97
The text was updated successfully, but these errors were encountered: