@Override public com.car2go.maps.model.VisibleRegion map(VisibleRegion input) { LatLngBounds bounds = AnyMapAdapter.adapt(input.latLngBounds); return new com.car2go.maps.model.VisibleRegion(bounds); }
public static Projection convert(LatLngBounds bound) { return new BaiduProjection( new VisibleRegion( new com.car2go.maps.model.LatLngBounds( BaiduToModelConverter.convert(bound.southwest), BaiduToModelConverter.convert(bound.northeast) ) ) ); } }
@Override public Projection getProjection() { org.osmdroid.views.Projection projection = map.getProjection(); return new OsmProjection( new VisibleRegion( new LatLngBounds( new LatLng( projection.getSouthWest().getLatitude(), projection.getSouthWest().getLongitude() ), new LatLng( projection.getNorthEast().getLatitude(), projection.getNorthEast().getLongitude() ) ) ) ); }