const attachImageToMap = (map, bitmap, iconName, sdf = true) => {
  const pixelRatio = devicePixelRatio;
  if (!map.hasImage(iconName)) {
    map.addImage(iconName, bitmap, { sdf, pixelRatio });
  } else {
    map.removeImage(iconName);
    map.addImage(iconName, bitmap, { sdf, pixelRatio });
  }
};
export {
  attachImageToMap
};
//# sourceMappingURL=attach-image-to-map.js.map
