visibleFeaturesInRect$1 method
- CGRect rect, {
- NSSet? inStyleLayersWithIdentifiers,
Returns an array of rendered map features that intersect with the given rectangle, restricted to the given style layers.
This method returns all the intersecting features from the specified layers. To
filter the returned features, use the
-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate: method. For
more information about searching for map features, see that method’s
documentation.
@param rect A rectangle expressed in the map view’s coordinate system.
@param styleLayerIdentifiers A set of strings that correspond to the names of
layers defined in the current style. Only the features contained in these
layers are included in the returned array.
@return An array of objects conforming to the MLNFeature protocol that
represent features in the sources used by the current style.
Implementation
objc.NSArray visibleFeaturesInRect$1(objc.CGRect rect, {objc.NSSet? inStyleLayersWithIdentifiers}) {
final _ret = _objc_msgSend_gxusyk(this.ref.pointer, _sel_visibleFeaturesInRect_inStyleLayersWithIdentifiers_, rect, inStyleLayersWithIdentifiers?.ref.pointer ?? ffi.nullptr);
return objc.NSArray.castFromPointer(_ret, retain: true, release: true);
}