fix has no method 'addAndLinkMarker' error

not sure whether this is the right way to fix it:
* move createAndLinkMarker into link function scope
* use _this to keep reference to link function scope