예제 #1
0
 void updateIndoor()
 {
     if (!CheckReady())
     {
         return;
     }
     map.SetIndoorEnabled(indoorCheckbox.Checked);
 }
예제 #2
0
        public void OnMapReady(GoogleMap map)
        {
            googleMap = map;

            map.MapType           = GoogleMap.MapTypeNormal;
            map.MyLocationEnabled = true;
            map.TrafficEnabled    = true;
            map.SetIndoorEnabled(true);
            map.BuildingsEnabled = true;
            map.UiSettings.ZoomControlsEnabled = true;
            map.UiSettings.CompassEnabled      = true;

            map.MapClick += OnMapClick;
        }
예제 #3
0
        void CreateMarker()
        {
            var markerWithIcon = new MarkerOptions();

            var id = UIFileUtils.GetResourceIdFromFilename("pin.png");

            markerWithIcon.SetPosition(new LatLng(formsMap.MapPinLocation.Latitude, formsMap.MapPinLocation.Longitude));
            markerWithIcon.SetTitle("A blue pin");
            markerWithIcon.SetSnippet(string.Empty);

            markerWithIcon.SetIcon(BitmapDescriptorFactory.FromResource(id));
            map.MyLocationEnabled = formsMap.IsShowingUser;
            map.SetIndoorEnabled(false);

            try
            {
                map.AddMarker(markerWithIcon);
            }
            catch (NullPointerException ex)
            {
                System.Console.WriteLine("Exception : {0}--{1}", ex.Message, ex.InnerException);
            }
            isDrawnDone = true;
        }