Gmaps.map.callback
is not an existing method in v2.x.
If you need a callback, simply add it after:
markers = handler.addMarkers(<%=raw @hash.to_json %>);
BTW, I recommend you use:
marker.getServiceObject()
<%= yield :scripts %>
is not necessary in v2.x