Example #1
0
        public static CameraPosition FromAJO(AndroidJavaObject ajo)
        {
            if (GoogleMapUtils.IsNotAndroid)
            {
                return(new CameraPosition(LatLng.Zero, 0, 0, 0));
            }

            var latLng  = LatLng.FromAJO(ajo.GetAJO("target"));
            var zoom    = ajo.GetFloat("zoom");
            var tilt    = ajo.GetFloat("tilt");
            var bearing = ajo.GetFloat("bearing");

            return(new CameraPosition(latLng, zoom, tilt, bearing));
        }