import type { Map as MbMap } from '@kbn/mapbox-gl' ; import { StaticStyleProperty } from './static_style_property' ; import { getMakiSymbolAnchor , getMakiIconId } from '../symbol_utils' ; import { IconStaticOptions } from '../../../../../common/descriptor_types' ; export class StaticIconProperty extends StaticStyleProperty < IconStaticOptions > { syncIconWithMb ( symbolLayerId , mbMap ) { const symbolId = this . _options . value ; mbMap . setLayoutProperty ( symbolLayerId , 'icon-anchor' , getMakiSymbolAnchor ( symbolId ) ) ; mbMap . setLayoutProperty ( symbolLayerId , 'icon-image' , symbolId ) ; } }