import { IAzureMapImageSprite , MapType } from '../../types' ; export const createImageSprites = async ( mapRef , spriteArray ) => { await Promise . all ( spriteArray . map ( async ( { id , templateName , color , secondaryColor , scale , icon } ) => { if ( icon ) { await mapRef . imageSprite . add ( id , icon ) ; } return mapRef . imageSprite . createFromTemplate ( id , templateName || 'marker' , color , secondaryColor , scale ) ; } ) ) ; } ;