Dont understand your code but here is the idea:
handler = Gmaps.build 'Google'
handler.buildMap { internal: {id: 'map'} }, ->
positionSuccess = (position) ->
handler.map.centerOn
lat: position.coords.latitude
lng: position.coords.longitude
positionError = ->
navigator.geolocation.getCurrentPosition(positionSuccess, positionError)