Fixed invalid usage of the google maps api