Represents a map layer containing features of a specific FeatureType whose
style can be overridden on the client.
| interface | FeatureLayer.OnFeatureClickListener | A user-defined function that will be used to
handle FeatureClickEvent. |
|
| interface | FeatureLayer.StyleFactory | The style factory function applied to every polygon in the affected feature layer. | |
| void |
addOnFeatureClickListener(FeatureLayer.OnFeatureClickListener
listener)
Sets a listener to respond to click events.
|
| String |
getDatasetId()
Gets the
datasetId of this FeatureLayer.
|
| FeatureLayer.StyleFactory |
getFeatureStyle()
Returns the
FeatureLayer.StyleFactory of this FeatureLayer
|
| String |
getFeatureType()
Returns the
FeatureType
of this FeatureLayer
|
| boolean |
isAvailable()
Returns whether this
FeatureLayer
is available, which requires the data-driven styling capability to be available
and the FeatureLayer
to be enabled in the Cloud Console for the map style associated with this map's
ID.
|
| void |
removeOnFeatureClickListener(FeatureLayer.OnFeatureClickListener
listener)
Removes a listener for this
FeatureLayer.
|
| void |
setFeatureStyle(FeatureLayer.StyleFactory
styleFactory)
Sets a
FeatureLayer.StyleFactory that will be used to style this
FeatureLayer.
|
Sets a listener to respond to click events. Click events will not be triggered if
this FeatureLayer
is not available.
Gets the datasetId of this FeatureLayer.
Returns the FeatureLayer.StyleFactory
of this FeatureLayer
Returns the FeatureType
of this FeatureLayer
Returns whether this FeatureLayer
is available, which requires the data-driven styling capability to be available and the
FeatureLayer
to be enabled in the Cloud Console for the map style associated with this map's ID. If
this is false, styling on this FeatureLayer
returns to default and the click listeners are not called.
Removes a listener for this FeatureLayer.
Sets a FeatureLayer.StyleFactory
that will be used to style this FeatureLayer.
If this FeatureLayer
is not available, styles will not be applied.