public AirGoogleMapOptions camera(CameraPosition camera) { options.camera(camera); return this; }
public AirGoogleMapOptions liteMode(boolean enabled) { options.liteMode(enabled); return this; }
public AirGoogleMapOptions compassEnabled(boolean enabled) { options.compassEnabled(enabled); return this; }
private GoogleMapOptions readOptions(Context context, AttributeSet attrs) { GoogleMapOptions options = new GoogleMapOptions(); if (attrs == null) { return options; } TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.MapView); try { options = options.liteMode( typedArray.getBoolean(R.styleable.MapView_anyMapLiteMode, false) ); } finally { typedArray.recycle(); } return options; }
@Override protected SupportMapFragment createMapFragment() { GoogleMapOptions options = new GoogleMapOptions(); options.camera(CameraPosition.builder().target(new LatLng(0.0, 0.0)).zoom(4.0f).build()); return SupportMapFragment.newInstance(options); }
/** * Build the map fragment with the requested options * * @return The {@link NativeGoogleMapFragment} map fragment. */ @Override public NativeGoogleMapFragment build() { if (options == null) { options = new AirGoogleMapOptions(new GoogleMapOptions()); } return NativeGoogleMapFragment.newInstance(options); } }
public int getMapType() { return options.getMapType(); }
public Boolean getCompassEnabled() { return options.getCompassEnabled(); }
public Boolean getLiteMode() { return options.getLiteMode(); }
public CameraPosition getCamera() { return options.getCamera(); }
public Boolean getMapToolbarEnabled() { return options.getMapToolbarEnabled(); }