public void SetImage(ImageDescriptor imageDescriptor) { if (GoogleMapUtils.IsPlatformNotSupported) { return; } CheckIfRemoved(); #if UNITY_IOS && !DISABLE_IOS_GOOGLE_MAPS if (string.IsNullOrEmpty(imageDescriptor.AssetName)) { Debug.LogError("On iOS image descriptor asset name can't be null or empty"); return; } _googleMapsViewOverlaySetImage(_overlayPtr, imageDescriptor.AssetName.ToFullStreamingAssetsPath()); #endif SetValueIfAndroid("setImage", imageDescriptor.ToAJO()); }
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() { if (GoogleMapUtils.IsNotAndroid) { return(null); } var ajo = new AndroidJavaObject(GroundOverlayOptionsClass); SetPosition(ajo); ajo.CallAJO(ZIndexMethodName, _zIndex); ajo.CallAJO(VisibleMethodName, _visible); ajo.CallAJO(ClickableMethodName, _clickable); ajo.CallAJO(TransparencyMethodName, _transparency); ajo.CallAJO(AnchorMethodName, _anchorU, _anchorV); ajo.CallAJO(BearingMethodName, _bearing); if (_imageDescriptor != null) { ajo.CallAJO(ImageMethodName, _imageDescriptor.ToAJO()); } return(ajo); }