Files
MapLibreParticleLab/platform/darwin/src/MGLFeature_Private.h
Minh Nguyễn ff0cc1c9ef [ios, osx] Streamlined conversion to MGLFeature
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.
2016-05-27 21:42:38 -07:00

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);