Another alternative is to add an event listener so that the slope is 0
. This is in addition to setting tilt: 0
in the parameters of your card, as others recommend.
It does not remove the user interface, but prevents viewing, other than service ones. It is language independent and you do not need to update CSS.
eg:.
google.maps.event.addListener(map, 'tilt_changed', function() { if (map.getTilt() != 0) { map.setTilt(0); } });
source share