in modules/layers/src/icon-layer/icon-manager.js [224:250]
setProps({loadOptions, autoPacking, iconAtlas, iconMapping, data, getIcon}) {
if (loadOptions) {
this._loadOptions = loadOptions;
}
if (autoPacking !== undefined) {
this._autoPacking = autoPacking;
}
if (getIcon) {
this._getIcon = getIcon;
}
if (iconMapping) {
this._mapping = iconMapping;
}
if (iconAtlas) {
this._updateIconAtlas(iconAtlas);
}
if (this._autoPacking && (data || getIcon) && typeof document !== 'undefined') {
this._canvas = this._canvas || document.createElement('canvas');
this._updateAutoPacking(data);
}
}