-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MGLMultiPolygon doesn't support coordinate property #7070
Comments
There are two issues here:
/cc @mourner |
@1ec5 wasn't Polylabel already integrated recently by @jfirebaugh? |
Ah, I missed that it got integrated (for label placement) in #7465. We'll have to figure out a way to make it accessible to SDK code as well. |
I would argue that the problem here is that |
|
To expand on #7070 (comment), having /cc @fabian-guerra |
Right -- I'm suggesting that either:
If you find yourself implementing methods where the implementation is arbitrary, then something is off about your class design. |
That’s a good argument for making the I would contend that it should be possible to implement a non-arbitrary Changing either MGLShape’s protocol conformance or making |
Fixed in #8713 on the release-ios-v3.6.0-android-v5.1.0 branch. |
Platform:
iOS
Mapbox SDK version:
3.3.6
Steps to trigger behavior
Expected behavior
The centroid of the MultiPoly would be returned from the coordinate property
Actual behavior
I get an 'MGLShape is an abstract class' error.
The text was updated successfully, but these errors were encountered: