public static final class Map.FeatureQuery.Builder extends Object implements AutoCloseable
Map.FeatureQuery
.Constructor and Description |
---|
Builder(Map.FeatureQuery.Builder other) |
Modifier and Type | Method and Description |
---|---|
Map.FeatureQuery |
build()
Creates the
map feature query for the configured settings. |
void |
close() |
Map.FeatureQuery.Builder |
features(List<LayerFeatureId> features)
Sets the features to select for this query.
|
protected void |
finalize() |
Map.FeatureQuery.Builder |
includeControllerLayers(boolean enable)
Indicates if you want to query features on the controller layers in addition to the map layers.
|
Map.FeatureQuery.Builder |
rectangle(Rectangle rectangle)
The rectangle parameter is mandatory.
|
public Builder(@NotNull Map.FeatureQuery.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public Map.FeatureQuery build() throws IllegalStateException
map feature query
for the configured settings.IllegalStateException
- when not all mandatory parameters are set.@NotNull public Map.FeatureQuery.Builder rectangle(@NotNull Rectangle rectangle)
rectangle
- the rectangle the features must interact with. Defined in device independent pixels.@NotNull public Map.FeatureQuery.Builder includeControllerLayers(boolean enable)
Calling this method is optional, this value is false by default.
enable
- if you want to query features on the controller layers in addition to the map layers.@NotNull public Map.FeatureQuery.Builder features(@NotNull List<LayerFeatureId> features)
These features act as a filter on the result: the Map
:queryFeatures method will only provide results for the given features.
Calling this method is optional. If it is not called, no filtering will be applied on the result.
features
- the features to include in the result