updated valid code for google maps with a marker