public AndroidJavaObject ToAJO() { if (GoogleMapUtils.IsNotAndroid) { return(null); } return(new AndroidJavaObject(CameraPositionClass, _latLng.ToAJO(), _zoom, _tilt, _bearing)); }
void SetPosition(AndroidJavaObject ajo) { switch (_setPositionMethodAndroid) { case SetPositionMethodAndroid.LatLngWidthOnly: ajo.CallAJO("position", _latLng.ToAJO(), _width); break; case SetPositionMethodAndroid.LatLngWidthHeight: ajo.CallAJO("position", _latLng.ToAJO(), _width, _height); break; case SetPositionMethodAndroid.LatLngBounds: ajo.CallAJO("positionFromBounds", _latLngBounds.ToAJO()); break; case SetPositionMethodAndroid.NotSet: break; default: Debug.LogError("GroundOverlayOptions must have position set"); break; } }
public static CameraUpdate NewLatLng(LatLng latLng) { if (GoogleMapUtils.IsPlatformNotSupported) { return(DummyCameraUpdate); } if (GoogleMapUtils.IsAndroid) { return(new CameraUpdate(CreateCameraUpdateAJO(NewLatLngMethodName, latLng.ToAJO()))); } return(new CameraUpdate(new Dictionary <string, object> { { CameraUpdateTypeKey, NewLatLngMethodName }, { "lat", latLng.Latitude }, { "lng", latLng.Longitude } })); }
public AndroidJavaObject ToAJO() { if (GoogleMapUtils.IsNotAndroid) { return(null); } var ajo = new AndroidJavaObject(CircleOptionsClass); ajo.CallAJO(CenterMethodName, _latLng.ToAJO()); ajo.CallAJO(RadiusMethodName, _radius); ajo.CallAJO(StrokeWidthMethodName, _strokeWidth); ajo.CallAJO(StrokeColorMethodName, _strokeColor.ToAndroidColor()); ajo.CallAJO(FillColorMethodName, _fillColor.ToAndroidColor()); ajo.CallAJO(ZIndexMethodName, _zIndex); ajo.CallAJO(IsVisibleMethodName, _visible); ajo.CallAJO(IsClickableMethodName, _clickable); return(ajo); }
public AndroidJavaObject ToAJO() { if (GoogleMapUtils.IsNotAndroid) { return(null); } var ajo = new AndroidJavaObject(MarkerOptionsClass); if (_position != null) { ajo.CallAJO(PositionMethodName, _position.ToAJO()); } ajo.CallAJO(ZIndexMethodName, _zIndex); if (_title != null) { ajo.CallAJO(TitleMethodName, _title); } if (_snippet != null) { ajo.CallAJO(SnippetMethodName, _snippet); } ajo.CallAJO(DraggableMethodName, _draggable); ajo.CallAJO(VisibleMethodName, _visible); ajo.CallAJO(FlatMethodName, _flat); ajo.CallAJO(RotationMethodName, _rotation); ajo.CallAJO(AlphaMethodName, _alpha); ajo.CallAJO(AnchorMethodName, _anchorU, _anchorV); ajo.CallAJO(InfoWindowAnchorMethodName, _infoWindowAnchorU, _infoWindowAnchorV); if (_imageDescriptor != null) { ajo.CallAJO(IconMethodName, _imageDescriptor.ToAJO()); } return(ajo); }
public AndroidJavaObject ToAJO() { return(GoogleMapUtils.IsAndroid ? new AndroidJavaObject(WeightedLatLngClass, _latLng.ToAJO(), _intensity) : null); }