import type { Map as MbMap } from '@kbn/mapbox-gl' ; import { StaticStyleProperty } from './static_style_property' ; import { VECTOR_STYLES } from '../../../../../common/constants' ; import { OrientationStaticOptions } from '../../../../../common/descriptor_types' ; export class StaticOrientationProperty extends StaticStyleProperty < OrientationStaticOptions > { constructor ( options , styleName ) { if ( typeof options . orientation !== 'number' ) { super ( { orientation : 0 } , styleName ) ; } else { super ( options , styleName ) ; } } syncIconRotationWithMb ( symbolLayerId , mbMap ) { mbMap . setLayoutProperty ( symbolLayerId , 'icon-rotate' , this . _options . orientation ) ; } }