fixed graphics drawing so that graphics are automatically drawn on the map once the base layers are loaded, without the need off calling syncgraphics

fixed fitMapItems so that it stores the selected extent if the base layers are not loaded and fits maps items once the base layers are loaded