visibleFeaturesAtPoint method

NSArray visibleFeaturesAtPoint(
  1. CGPoint point
)

Returns an array of rendered map features that intersect with a given point.

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 point A point 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.

  • TODO: Select a feature within a layer: to learn how to query an MLNMapView object for visible MLNMapView objects.

Implementation

objc.NSArray visibleFeaturesAtPoint(objc.CGPoint point) {
  final _ret = _objc_msgSend_wgkxx2(this.ref.pointer, _sel_visibleFeaturesAtPoint_, point);
  return objc.NSArray.castFromPointer(_ret, retain: true, release: true);
}