예제 #1
0
        private static void SimpleExample()
        {
            SimpleGoogleMaps sgm = new SimpleGoogleMaps();

            sgm.SetWindowTitle("New-York");
            sgm.SetLatitude(40.714728);
            sgm.SetLongitude(-73.998672);
            sgm.SetZoom(12);
            Console.WriteLine(sgm.GenerateUrl());
            sgm.Refresh();
        }
예제 #2
0
        private static void SimpleExample3()
        {
            SimpleGoogleMaps sgm = new SimpleGoogleMaps();

            sgm.SetLatitude(32.776760);
            sgm.SetLongitude(35.027222);
            sgm.SetZoom(17);
            sgm.SetWidth(640);
            sgm.SetHeight(640);
            sgm.SetWindowTitle("Technion's Department of Education in Technology and Science - Hybrid");
            sgm.SetMapType(SimpleGoogleMaps.HYBRID);
            Console.WriteLine(sgm.GenerateUrl());
            sgm.Refresh();
        }
예제 #3
0
        private static void SimpleExample4()
        {
            SimpleGoogleMaps sgm = new SimpleGoogleMaps();

            sgm.SetWindowTitle("Technion's Department of Education in Technology and Science - Road-Map");
            sgm.SetLatitude(32.776760);
            sgm.SetLongitude(35.027222);
            sgm.SetZoom(17);
            sgm.SetWidth(640);
            sgm.SetHeight(640);
            sgm.AddMarker(new Marker(32.776760, 35.025, Color.Black));
            sgm.AddMarker(new Marker(32.776760, 35.026, Color.Pink));
            sgm.AddMarker(new Marker(32.776760, 35.027, Color.Blue));
            sgm.AddMarker(new Marker(32.776760, 35.028, Color.Red));
            sgm.AddMarker(new Marker(32.776760, 35.029, Color.Magenta));
            sgm.AddMarker(new Marker(32.776760, 35.030, Color.Green));

            Console.WriteLine(sgm.GenerateUrl());
            sgm.Refresh();
        }