LMI.Init.addFunction(function(){var i,c,M=LMI.Mapping,map=new M.Map('#mapImage',LMI.Data.mapOptions);if('centerPoint'in LMI.Data&&LMI.Data.centerPoint.geoCoded){c=LMI.Data.centerPoint;map.addObject(new DSIcon(new M.Point(c.latitude,c.longitude),LMI.MapUtils.getIcon(-1,'red',true),21,26));}
if('searchResults'in LMI.Data){i=LMI.Data.searchResults.length-1;LMI.Lang.forEach(LMI.Data.searchResults.reverse(),function(loc){if(loc.geoCoded){map.addObject(new DSIcon(new M.Point(loc.latitude,loc.longitude),LMI.MapUtils.getIcon(i,'blue'),21,26));}
i--;});}
map.bestFit();});