Partially functional use of google maps API