0.3.0 #23
@ -6,6 +6,7 @@
|
|||||||
- `alpha` extension for feature attribute builder
|
- `alpha` extension for feature attribute builder
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
- avoid drawing features with VisibleAttribute false
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ public fun <T : Any> FeatureDrawScope<T>.drawFeature(
|
|||||||
): Unit {
|
): Unit {
|
||||||
val color = feature.color ?: Color.Red
|
val color = feature.color ?: Color.Red
|
||||||
val alpha = feature.attributes[AlphaAttribute] ?: 1f
|
val alpha = feature.attributes[AlphaAttribute] ?: 1f
|
||||||
|
//avoid drawing invisible features
|
||||||
|
if(feature.attributes[VisibleAttribute] == false) return
|
||||||
|
|
||||||
when (feature) {
|
when (feature) {
|
||||||
is FeatureSelector -> drawFeature(feature.selector(state.zoom))
|
is FeatureSelector -> drawFeature(feature.selector(state.zoom))
|
||||||
|
Loading…
Reference in New Issue
Block a user