public OrderMapFragment(TouchableMap mapFragment, Resources resources, TaxiHailSetting settings) { _resources = resources; _settings = settings; _showVehicleNumber = settings.ShowAssignedVehicleNumberOnPin; InitDrawables(); this.CreateBindingContext(); Map = mapFragment.Map; Map.MyLocationEnabled = true; Map.UiSettings.MyLocationButtonEnabled = false; // NOTE: wasn't working on some devices, reverted to standard padding and moved the buttons up in the layout // add padding to the map to move the Google logo around // the padding must be the same for left/right and top/bottom for the pins to be correctly aligned Map.SetPadding(6.ToPixels(), 6.ToPixels(), 6.ToPixels(), 6.ToPixels()); TouchableMap = mapFragment; InitializeOverlayIcons(); this.DelayBind(InitializeBinding); CreatePins(); }
public OrderMapFragment(TouchableMap mapFragment, Resources resources, TaxiHailSetting settings) { _resources = resources; _settings = settings; _showVehicleNumber = settings.ShowAssignedVehicleNumberOnPin; this.CreateBindingContext(); Map = mapFragment.Map; Map.MyLocationEnabled = true; TouchableMap = mapFragment; InitializeOverlayIcons(); this.DelayBind(InitializeBinding); CreatePins(); InitDrawables(); }