markers.bind="myMarkers"' doesn't work.
view-model.refis an aurelia thing. Read here about the other
attached? Because google isn’t loaded yet then (or it is but you have a race-condition). You can use the aurelia's
eventaggregatorto listen to
googlemap:api:loadedand then call the function.