You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
MGLShape.geoJSONDictionary is a computed property that converts an MGLShape to a GeoJSON-formatted NSDictionary. It’s private, but there’s no technical reason we couldn’t make it public:
Returns a dictionary with the GeoJSON geometry member object.
*/
- (NSDictionary *)geoJSONDictionary;
Originally, we left it private because we expected developers to convert between MGLShape and GeoJSON-formatted strings or data, not dictionaries. But this method would be handy for streamlining the workaround in #275 (comment), specifically for the situation where we haven’t built a custom NSExpression function for a JSON expression operator that takes a GeoJSON object as an argument.
/cc @mapbox/maps-ios
The text was updated successfully, but these errors were encountered:
MGLShape.geoJSONDictionary
is a computed property that converts an MGLShape to a GeoJSON-formatted NSDictionary. It’s private, but there’s no technical reason we couldn’t make it public:mapbox-gl-native-ios/platform/darwin/src/MGLShape_Private.h
Lines 21 to 24 in 42f4257
Originally, we left it private because we expected developers to convert between MGLShape and GeoJSON-formatted strings or data, not dictionaries. But this method would be handy for streamlining the workaround in #275 (comment), specifically for the situation where we haven’t built a custom NSExpression function for a JSON expression operator that takes a GeoJSON object as an argument.
/cc @mapbox/maps-ios
The text was updated successfully, but these errors were encountered: