-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Document that MGLShape has a concrete initializer #7614
Comments
Wow, you’re right @nitrag, this is confusing. The return type of
(In the future, once we fix #7454, |
Fixed in #7638 on the release-ios-v3.4.0 branch. |
#7638 updated the documentation as @1ec5 suggested to clarify that using the factory method on I wanted to point out though that you say that when you tried This was just closed by #7638, but if you can reproduce the nil result with valid GeoJSON please reopen with a sample of the GeoJSON you are attempting to create a |
Also, #7627 adds an example of using |
@1ec5 When you get a chance can you check your blog email? (Don't have email listed in github). I sent you a private project. Should take you 5 min to open and reproduce the crash...it might be a separate issue but seeing as it throws the same crash I'm was not sure if I should open a separate issue. |
Thanks @nitrag – looking into it. |
I am creating a
MGLShape
from GeoJSON (NSData). How do I go fromMGLShape
toMGLPolyline
? Shouldn't you be able to cast? If not,MGLShape
needs a public method, similar toshape.coordinate
, for getting&coordinates
which is required to createMGLPolyline
.Platform: iOS/Swift
Mapbox SDK version: 3.4.0-beta6
Steps to trigger behavior
Expected behavior
Get
MGLPolyline
Actual behavior
nil
The docs are confusing, don't I have to use
+shapeWithData:encoding:error:
to get aMGLShape
in the first place? Then how do I create an instance of .../newb
The text was updated successfully, but these errors were encountered: