visibleFeaturesInRect method

NSArray visibleFeaturesInRect(
  1. CGRect rect
)

Returns an array of rendered map features that intersect with the given rectangle.

This method may return features from any of the map’s style layers. To restrict the search to a particular layer or layers, use the -visibleFeaturesAtPoint:inStyleLayersWithIdentifiers: 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. @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(objc.CGRect rect) {
  final _ret = _objc_msgSend_15yz4e6(this.ref.pointer, _sel_visibleFeaturesInRect_, rect);
  return objc.NSArray.castFromPointer(_ret, retain: true, release: true);
}