void updateIndoor() { if (!CheckReady()) { return; } map.SetIndoorEnabled(indoorCheckbox.Checked); }
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; }
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; }