Package com.luciad.maps
Class MapQueryFeaturesResult
java.lang.Object
com.luciad.maps.MapQueryFeaturesResult
Contains information about (parts of) features hit by a Query, returned by
Map#queryFeatures
.-
Constructor Summary
ConstructorDescriptionMapQueryFeaturesResult
(LayerFeatureId featureId, Coordinate mapTouchPoint, boolean overlay) Create aMapQueryFeaturesResult
containing information about (part of) a touched feature. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Object that has been hit by the query.Location where a part of the feature has been touched in theMap
reference.int
hashCode()
boolean
When overlay is true, it means that the part of the feature that was touched is always painted on top of everything else.
-
Constructor Details
-
MapQueryFeaturesResult
public MapQueryFeaturesResult(@NotNull LayerFeatureId featureId, @NotNull Coordinate mapTouchPoint, boolean overlay) Create aMapQueryFeaturesResult
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
-
getFeatureId
Object that has been hit by the query. -
getMapTouchPoint
Location where a part of the feature has been touched in theMap
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
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
-
hashCode
public int hashCode()
-