@Override public IObjectWrapper toScreenLocation(LatLng latLng) throws RemoteException { Point point = new Point(); viewport.toScreenPoint(GmsMapsTypeHelper.fromLatLng(latLng), point); return ObjectWrapper.wrap(GmsMapsTypeHelper.toPoint(point)); }
@Override public IObjectWrapper createSignInButton(IObjectWrapper contextWrapper, int size, int color) { Context context = (Context) ObjectWrapper.unwrap(contextWrapper); // TODO: real view :) return ObjectWrapper.wrap(new View(context)); }
@Override public LatLng fromScreenLocation(IObjectWrapper obj) throws RemoteException { Point point = GmsMapsTypeHelper.fromPoint((android.graphics.Point) ObjectWrapper.unwrap(obj)); return GmsMapsTypeHelper.toLatLng(viewport.fromScreenPoint((float) point.x, (float) point.y)); }