buildingsVisibility property
Get buildings visibility option.
Controls how buildings are rendered on the map. Options include hiding buildings entirely, showing them as flat 2D shapes, or rendering them as 3D models. 3D building effects are most pronounced when the camera is tilted and zoomed in.
Returns
- BuildingsVisibility: The current buildings visibility mode.
See also:
- buildingsVisibility - Change buildings visibility.
- BuildingsVisibility - Available visibility modes.
- setViewAngle - Tilt the camera to see 3D buildings better.
Implementation
BuildingsVisibility get buildingsVisibility {
final OperationResult resultString = objectMethod(
_pointerId,
'MapViewPreferences',
'getBuildingsVisibility',
dependencyId: _mapPointerId,
);
return BuildingsVisibilityExtension.fromId(resultString['result']);
}
Set buildings visibility to the specified option.
Controls how buildings are rendered on the map. Use BuildingsVisibility.threeDimensional for 3D building models or BuildingsVisibility.twoDimensional for flat representations. 3D building effects are most pronounced with a tilted camera (use setViewAngle) and when zoomed in to street level.
Parameters
option: (BuildingsVisibility) The buildings visibility mode to apply.
See also:
- buildingsVisibility getter - Get current visibility mode.
- setViewAngle - Tilt the camera to see 3D buildings.
Implementation
set buildingsVisibility(final BuildingsVisibility option) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setBuildingsVisibility',
args: option.id,
dependencyId: _mapPointerId,
);
}