private void addRegularPin(Pin pin) { var custom_pin = new CustomPin { Pin = pin, isCustom = false, Id = pin.Label }; map.CustomPins.Add(custom_pin); map.Pins.Add(pin); }
private void addRegularPin(Pin pin) { // Adds a new standard map pin to the map var custom_pin = new CustomPin { Pin = pin, isCustom = false, Id = pin.Label }; map.CustomPins.Add(custom_pin); map.Pins.Add(pin); }
private void makeDriverPin(Position pos) { var pin = new CustomPin { Pin = new Pin { Type = PinType.Generic, Position = pos, Label = "Driver" }, isCustom = true, Id = "Driver" }; Console.WriteLine("Making Driver Pin"); map.CustomPins.Add(pin); map.Pins.Add(pin.Pin); centerMapOnTwoPins(map.getPin("Pick Up Location"), pin.Pin); }
private void makeDriverPin(Position pos) { // Creates a new Driver pin that will represent the location of a driver and adds it to the map var pin = new CustomPin { Pin = new Pin { Type = PinType.Generic, Position = pos, Label = "Driver" }, isCustom = true, Id = "Driver" }; Console.WriteLine("Making Driver Pin"); map.CustomPins.Add(pin); map.Pins.Add(pin.Pin); centerMapOnTwoPins(map.getPin("Pick Up Location"), pin.Pin); }