Made writability of MGLFeature properties private, to avoid having to awkwardly explain that changes to the properties don’t change the map (maybe someday they will). This allows the identifier and attributes to be set in only one place, avoiding copy-pasta.
12 lines
325 B
Objective-C
12 lines
325 B
Objective-C
#import "MGLFeature.h"
|
|
#import "MGLShape.h"
|
|
|
|
#import <mbgl/util/geo.hpp>
|
|
#import <mbgl/util/feature.hpp>
|
|
|
|
/**
|
|
Returns an array of `MGLFeature` objects converted from the given vector of
|
|
vector tile features.
|
|
*/
|
|
NS_ARRAY_OF(MGLShape <MGLFeature> *) *MGLFeaturesFromMBGLFeatures(const std::vector<mbgl::Feature> &features);
|