Class MapQueryFeaturesResult

java.lang.Object
com.luciad.maps.MapQueryFeaturesResult

public final class MapQueryFeaturesResult extends Object
Contains information about (parts of) features hit by a Query, returned by Map#queryFeatures.
  • Constructor Details Link icon

    • MapQueryFeaturesResult Link icon

      public MapQueryFeaturesResult(@NotNull LayerFeatureId featureId, @NotNull Coordinate mapTouchPoint, boolean overlay)
      Create a MapQueryFeaturesResult containing information about (part of) a touched feature.
      Parameters:
      featureId - layer/feature that was touched.
      mapTouchPoint - location where the feature was touched. This parameter is optional: if absent, a screen space component (e.g. a label) has been hit.
      overlay - flag if the hit is drawn as an overlay and hence on top of other features.
  • Method Details Link icon

    • getFeatureId Link icon

      @NotNull public LayerFeatureId getFeatureId()
      Object that has been hit by the query.
    • getMapTouchPoint Link icon

      @NotNull public Coordinate getMapTouchPoint()
      Location where a part of the feature has been touched in the Map reference.

      This field is optional:

      • if it has a value, it means that the part of the feature that has been hit was painted on the map.
      • if it doesn't have a value, it means that the part of the feature that has been hit was painted in screen space. This is for example the case for labels. Note that in that case, the overlay field will be true as well.
    • isOverlay Link icon

      public boolean isOverlay()
      When overlay is true, it means that the part of the feature that was touched is always painted on top of everything else.

      This is currently the case for labels.

    • equals Link icon

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object