visibleFeaturesAtPoint$1 method

NSArray visibleFeaturesAtPoint$1(
  1. CGPoint point, {
  2. NSSet? inStyleLayersWithIdentifiers,
})

Returns an array of rendered map features that intersect with a given point, 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 point A point 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 visibleFeaturesAtPoint$1(objc.CGPoint point, {objc.NSSet? inStyleLayersWithIdentifiers}) {
  final _ret = _objc_msgSend_u7nfz8(this.ref.pointer, _sel_visibleFeaturesAtPoint_inStyleLayersWithIdentifiers_, point, inStyleLayersWithIdentifiers?.ref.pointer ?? ffi.nullptr);
  return objc.NSArray.castFromPointer(_ret, retain: true, release: true);
}