@ file : Jvm Name (" Location Component Utils ") Ċ Ċ package Ġcom . mapbox . maps . plugin . location component Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . annotation . Drawable Res Ċ import Ġandroidx . core . content . res . Resources Compat Ċ import Ġcom . mapbox . maps . plugin . Location P uck 2 D Ċ import Ġcom . mapbox . maps . plugin . Plugin Ċ import Ġcom . mapbox . maps . plugin . deleg ates . Map Plugin Provider Delegate Ċ Ċ /** Ċ Ġ* ĠExtension Ġval Ġto Ġget Ġthe ĠLocation Component Plugin Ġinstance . Ċ Ġ*/ Ċ val ĠMap Plugin Provider Delegate . location : ĠLocation Component Plugin ĊĠ Ġ@ Jvm Name (" getLocation Component ") ĊĠ Ġget () Ġ= Ġthis . get Plugin ( Plugin . MAP BOX _ LOCATION _ COMPONENT _ PLUGIN _ ID ) !! Ċ Ċ private Ġfun ĠContext . get Compat Drawable (@ Drawable Res Ġres Id : ĠInt ) Ġ= ĠResources Compat . get Drawable ( ĊĠ Ġthis . resources , ĊĠ Ġres Id , ĊĠ Ġnull Ċ ) Ċ Ċ /** Ċ Ġ* ĠCreate Ġa Ġ[ Location P uck 2 D ] Ġinstance Ġwith Ġor Ġwithout Ġan Ġarrow Ġbe aring Ġimage . Ċ Ġ* Ġ@ param Ġcontext Ġthe Ġcontext Ġof Ġapplication Ċ Ġ* Ġ@ param Ġwith Be aring Ġif Ġt ure , Ġthe Ġlocation Ġp uck Ġwill Ġshow Ġan Ġarrow Ġbe aring Ġimage , Ġdefault Ġis Ġfalse . Ċ Ġ*/ Ċ @ Jvm Over loads Ċ fun ĠLocation Component Plugin . create Default 2 DP uck ( ĊĠ Ġcontext : ĠContext , ĊĠ Ġwith Be aring : ĠBoolean Ġ= Ġfalse Ċ ): ĠLocation P uck 2 D Ġ= ĠLocation P uck 2 D ( ĊĠ Ġtop Image Ġ= Ġcontext . get Compat Drawable ( R . drawable . mapbox _ user _ icon ), ĊĠ Ġbe aring Image Ġ= Ġcontext . get Compat Drawable ( ĊĠĠĠ Ġif Ġ( with Be aring ) ĊĠĠĠĠĠ ĠR . drawable . mapbox _ user _ be aring _ icon ĊĠĠĠ Ġelse ĊĠĠĠĠĠ ĠR . drawable . mapbox _ user _ stroke _ icon ĊĠ Ġ), ĊĠ Ġshadow Image Ġ= Ġcontext . get Compat Drawable ( ĊĠĠĠ Ġif Ġ( with Be aring ) ĊĠĠĠĠĠ ĠR . drawable . mapbox _ user _ stroke _ icon ĊĠĠĠ Ġelse ĊĠĠĠĠĠ ĠR . drawable . mapbox _ user _ icon _ shadow ĊĠ Ġ) Ċ )