예제 #1
0
        public MapOptions()
        {
            Zoom                     = 5;
            Center                   = new GeographicLocation(-26.68, 25.27); //South Africa
            MapType                  = MapTypeId.Roadmap;
            AllowScrollWheel         = true;
            KeyboardShortcutsEnabled = true;
            DraggingEnabled          = true;
            DisableDoubleClickZoom   = false;

            ShowStreetViewControl  = true;
            ShowZoomControl        = true;
            ShowScaleControl       = false;
            ShowRotateControl      = false;
            ShowPanControl         = true;
            ShowOverviewMapControl = false;
            ShowMapTypeControl     = true;
            ShowMapMakers          = false;

            ZoomControlOptions       = new ZoomControlOptions();
            StreetViewControlOptions = new StreetViewControlOptions();
            ScaleControlOptions      = new ScaleControlOptions();
            RotateControlOptions     = new RotateControlOptions();
            PanControlOptions        = new PanControlOptions();
            OverviewControlOptions   = new OverviewControlOptions();
            MapTypeControlOptions    = new MapTypeControlOptions();
        }
예제 #2
0
 public StreetViewOptions()
 {
     ShowAddressControl     = true;
     ClickToGo              = true;
     DisableDoubleClickZoom = true;
     ShowCloseButton        = true;
     ShowImageDateControl   = true;
     ShowLinksControl       = true;
     ShowPanControl         = true;
     PanControlOptions      = new GoogleMapsApi.PanControlOptions();
     POV                = new POV();
     ShowScrollWheel    = true;
     Visible            = false;
     ShowZoomControl    = true;
     ZoomControlOptions = new ZoomControlOptions();
 }