public final class MapQueryFeaturesResult extends Object
Map#queryFeatures
.Constructor and Description |
---|
MapQueryFeaturesResult(LayerFeatureId featureId,
Coordinate mapTouchPoint,
boolean overlay)
Create a
MapQueryFeaturesResult containing information about (part of) a touched feature. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
LayerFeatureId |
getFeatureId()
Object that has been hit by the query.
|
Coordinate |
getMapTouchPoint()
Location where a part of the feature has been touched in the
Map reference. |
int |
hashCode() |
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.
|
public MapQueryFeaturesResult(@NotNull LayerFeatureId featureId, @NotNull Coordinate mapTouchPoint, boolean overlay)
MapQueryFeaturesResult
containing information about (part of) a touched feature.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.@NotNull public LayerFeatureId getFeatureId()
@NotNull public Coordinate getMapTouchPoint()
Map
reference.
This field is optional:
labels
. Note that in that case, the overlay field will be true as well.
public boolean isOverlay()
This is currently the case for labels
.