예제 #1
0
        public CustomMapPage()
        {
            InitializeComponent();

            var customMap = new CustomMap
            {
                MapType = MapType.Hybrid,
            };

            var position1  = new Position(46.16959900000001, 1.8714519999999766);
            var position2  = new Position(46.28254500000001, 2.000344000000041);
            var position3  = new Position(46.2571185, 1.9708194);
            var position4  = new Position(46.7076989, 1.1459506);
            var position5  = new Position(46.2319694, 1.9766053);
            var position6  = new Position(46.0592497, 2.2834104);
            var position7  = new Position(46.0423787, 1.719308);
            var position8  = new Position(45.8450756, 2.2174647);
            var position9  = new Position(46.3370774, 2.1912582);
            var position10 = new Position(46.006615, 1.9169698);
            var position11 = new Position(45.813619, 1.7736720000000332);



            var customPin1 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = position1,
                    Label    = "Guéret",
                    Address  = "La seule ville habitée ?"
                },
                Url = "",
            };


            var customPin2 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position2,
                    Label    = "Roches",
                    Address  = "Donc, il y a des cailloux en Creuse..."
                },
                Url = ""
            };

            var customPin3 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position3,
                    Label    = "Une vache parmis d'autres",
                    Address  = "Eh oui, il y a bien plus de vaches que d'habitants en Creuse."
                },
                Url = ""
            };

            var customPin4 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position4,
                    Label    = "Chez Michel",
                    Address  = "Il parrait qu'il a du Wifi !"
                },
                Url = ""
            };

            var customPin5 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position5,
                    Label    = "Rien",
                    Address  = ""
                },
                Url = ""
            };

            var customPin6 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position6,
                    Label    = "Le vide",
                    Address  = ""
                },
                Url = ""
            };

            var customPin7 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position7,
                    Label    = "Nada",
                    Address  = ""
                },
                Url = ""
            };

            var customPin8 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position8,
                    Label    = "Niente",
                    Address  = ""
                },
                Url = ""
            };

            var customPin9 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position9,
                    Label    = "Que pouic",
                    Address  = ""
                },
                Url = ""
            };

            var customPin10 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position10,
                    Label    = "Le néant",
                    Address  = ""
                },
                Url = ""
            };

            var customPin11 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position11,
                    Label    = "Peyrat-le-Château",
                    Address  = "Là, c'est plus la Creuse"
                },
                Url = ""
            };

            customMap.CustomPins = new List <CustomPin>
            {
                customPin1,
                customPin2,
                customPin3,
                customPin4,
                customPin5,
                customPin6,
                customPin7,
                customPin8,
                customPin9,
                customPin10,
                customPin11,
            };

            customMap.MoveToRegion(MapSpan.FromCenterAndRadius(
                                       new Position(46.0595947, 1.7117749), Distance.FromMiles(40)));

            Content = customMap;
        }
        public CustomMapPage()
        {
            InitializeComponent();

            var customMap = new CustomMap
            {
                MapType = MapType.Hybrid,
            };

            var position1 = new Position(36.8961, 10.1865);
            var position2 = new Position(36.891, 10.181);
            var position3 = new Position(36.892, 10.182);
            var position4 = new Position(36.893, 10.183);
            var position5 = new Position(36.891, 10.185);
            var position6 = new Position(36.892, 10.187);

            var customPin1 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = position1,
                    Label    = "IntilaQ",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.intilaq.tn",
            };


            var customPin2 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position2,
                    Label    = "Telnet R&D",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.groupe-telnet.com"
            };

            var customPin3 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position3,
                    Label    = "Kromberg&Schubert",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.kromberg-schubert.com"
            };

            var customPin4 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position4,
                    Label    = "Via Mobile",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.kromberg-schubert.com"
            };

            var customPin5 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position5,
                    Label    = "Via Mobile",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.kromberg-schubert.com"
            };

            var customPin6 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position6,
                    Label    = "Via Mobile",
                    Address  = "Technopark Elgazala, Tunisia"
                },
                Url = "www.kromberg-schubert.com"
            };

            customMap.CustomPins = new List <CustomPin>
            {
                customPin1,
                customPin2,
                customPin3,
                customPin4,
                customPin5,
                customPin6,
            };

            customMap.MoveToRegion(MapSpan.FromCenterAndRadius(
                                       new Position(36.8961, 10.1865), Distance.FromMiles(0.5)));

            Content = customMap;
        }
        public CustomMapPage()
        {
            InitializeComponent();

            var customMap = new CustomMap
            {
                MapType = MapType.Hybrid,
            };

            var position1 = new Position(36.4672, -116.8937);
            var position2 = new Position(51.7666636, 10.5333312);
            var position3 = new Position(19.479488, -155.602829);
            var position4 = new Position(40.220390, -74.012085);

            var position6 = new Position(27.986065, 86.922623);

            var customPin6 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = position6,
                    Label    = "Use any way to inform others who can pass by that you are in some trouble by using anything u have to set fire or making signs",
                    Address  = "Mount Everest, Nepal"
                },
            };


            var customPin1 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = position1,
                    Label    = "Unpack anything heavy and walk towards the highest point ",
                    Address  = "Death Valley, California and Nevada, USA"
                },
            };


            var customPin2 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position2,
                    Label    = "Unpack anything heavy and walk towards the highest point",
                    Address  = "Skellig Michael, off the coast of Ireland"
                },
            };

            var customPin3 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position3,
                    Label    = "Be careful of anything red and dont ever take close pictures and walk in the indiacted road",
                    Address  = "Hawaii's Volcano Tours"
                },
            };

            var customPin4 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position4,
                    Label    = "Just Be careful of the pointy shaped games",
                    Address  = "Action Park, New Jersey, USA"
                },
            };



            customMap.CustomPins = new List <CustomPin>
            {
                customPin1,
                customPin2,
                customPin3,
                customPin4,
                customPin6,
            };

            customMap.MoveToRegion(MapSpan.FromCenterAndRadius(
                                       new Position(36.8961, 10.1865), Distance.FromMiles(0.5)));

            Content = customMap;
        }
예제 #4
0
        public SampleMapPage()
        {
            InitializeComponent();

            var map = new CustomMap
            {
                MapType = MapType.Hybrid,
            };

            var position1 = new Position(44.808269, -0.597815);
            var position2 = new Position(44.8078125, -0.5975103000000672);
            var position3 = new Position(44.8011696, -0.6099450000000388);
            var position4 = new Position(44.8097109, -0.591550600000005);
            var position5 = new Position(44.8101659, -0.5914253999999346);
            var position6 = new Position(44.8048075, -0.5927613000000065);

            var customPin1 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.Place,
                    Position = position1,
                    Label    = "Parking, CREMI",
                    Address  = "Si vous avez perdu votre voiture... pour vous enfuire !"
                },
                Url = "",
            };


            var customPin2 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position2,
                    Label    = "Sys Admin (2ème étage)",
                    Address  = "Un Blue Screen ?"
                },
                Url = ""
            };

            var customPin3 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position3,
                    Label    = "Espace santé étudiants",
                    Address  = "Une tendinite à l'index droit ?"
                },
                Url = ""
            };

            var customPin4 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position4,
                    Label    = "Kebab le plus proche",
                    Address  = "Le manger pas cher le plus proche."
                },
                Url = ""
            };

            var customPin5 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position5,
                    Label    = "2ème Kebab le plus proche",
                    Address  = "2 vaut mieux qu'un"
                },
                Url = ""
            };

            var customPin6 = new CustomPin
            {
                Pin = new Pin
                {
                    Type     = PinType.SearchResult,
                    Position = position6,
                    Label    = "Le Jardin des Fleurs",
                    Address  = "Qui a dit que les informaticiens n'aimaient pas les fleurs ?!"
                },
                Url = ""
            };

            map.CustomPins = new List <CustomPin>
            {
                customPin1,
                customPin2,
                customPin3,
                customPin4,
                customPin5,
                customPin6,
            };

            map.MoveToRegion(MapSpan.FromCenterAndRadius(
                                 new Position(44.807831, -0.597515), Distance.FromMiles(0.5)));

            Content = map;
        }