create From Attributes
open fun createFromAttributes(@NonNull context: Context, @StyleRes styleRes: Int): LocationComponentOptions
Construct a new Location Component Options class using the attributes found within a style resource. It's important to note that you only need to define the attributes you plan to change and can safely ignore the other attributes which will be set to their default value.
Return
a new LocationComponentOptions object with the settings you defined in your style resource
Parameters
context
your activity's context used for acquiring resources
style Res
the style id where your custom attributes are defined