To go further (is it possible to add it as a comment of Rene?), is it possible to use a paramter inside the extent?
for example : IconMap(extent={{-1param1,-2param1},{param1,param2}}, ...