Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }