public static Drawable CreateDrawable(PointStyleInfo styleInfo, AssetManager assetManager )
        {
            if (string.IsNullOrWhiteSpace(styleInfo.ImageUrl))
            {
                throw new NotSupportedException("point style for non-images not supported.");
            }

            var asset = assetManager.Open(styleInfo.ImageUrl);
            return new BitmapDrawable(asset);
        }
 private void CreateMyLocationOverlay(string name, string alias,
     PointStyleInfo userSymbol,
     PointStyleInfo compassSymbol = null,
     IUserLocationTracker userLocationDataManager = null)
 {
     var locationOverlay = 
         _mapQuestOverlayFactory.CreateMyLocationOverlay(name, alias, 
         userSymbol, compassSymbol, 
         _assetManager, userLocationDataManager, _map, _annotationView);
     RegisterLayerViewModel(locationOverlay);
 }
        public static PointStyle CreatePointStyle(PointStyleInfo styleInfo, AssetManager assetManager)
        {
            Drawable drawable = null;
            if (!string.IsNullOrWhiteSpace(styleInfo.ImageUrl))
            {
                drawable = CreateBitmapDrawable(styleInfo.ImageUrl, assetManager);
            }
            else
            {
                drawable = new ColorDrawable(CreateColor(styleInfo.SolidColor));    
            }

            return new PointStyle(drawable);
        }
 public void AddMyLocationLayer(
     string name, string alias,
     PointStyleInfo userSymbol,
     PointStyleInfo compassSymbol = null, 
     IUserLocationTracker userLocationDataManager = null)
 {
     if (_mapView == null)
     {
         _pendingLayerDrawActions.Add(() => CreateMyLocationOverlay(name, alias, userSymbol, compassSymbol, userLocationDataManager));
     }
     else
     {
         CreateMyLocationOverlay(name, alias, userSymbol, compassSymbol, userLocationDataManager);
     }
     
     //locationOverlay.IsLocationUpdateEnabled = true;  //.EnableLocationTracking();
     //locationOverlay.RunOnFirstFix(new MyLocationRunnable(locationOverlay, _map));
 }