added an expand factor to the GetMap service
fixed compile errors and some warnings