Method Summary |
|
void | addMapLayerListener(MapLayerListener listener) Add a listener to notify when a layer property changes. |
ReferencedEnvelope | getBounds() |
FeatureSource | getFeatureSource() Get the feature collection for this layer. |
Query | getQuery() Returns the definition query (filter) for this layer. |
CollectionSource | getSource() Get the data source for this layer. |
Style | getStyle() Get the style for this layer. |
String | getTitle() Get the title of this layer. |
boolean | isVisible() Determine whether this layer is visible on a map pane or whether the
layer is hidden. |
void | removeMapLayerListener(MapLayerListener listener) Removes a listener from the listener list for this layer. |
void | setQuery(Query query) Sets a definition query for the layer wich acts as a filter for the
features that the layer will draw.
A consumer must ensure that this query is used in combination with the
bounding box filter generated on each map interaction to limit the
number of features returned to those that complains both the definition
query and relies inside the area of interest.
IMPORTANT: only include attribute names in the query if you want them to
be ALWAYS returned. |
void | setStyle(Style style) Sets the style for this layer. |
void | setTitle(String title) Set the title of this layer. |
void | setVisible(boolean visible) Specify whether this layer is visible on a map pane or whether the layer
is hidden. |