<div class="center">
    <p>HTML:</p>
    <pre class="html" ng-non-bindable>
&lt;ya-map ya-zoom="8" ya-center="[37.721587,55.30954]" ya-after-init="afterInit($target)"&gt;
    &lt;ya-cluster&gt;
        &lt;ya-geo-object ya-source="o" ng-repeat="o in res" ya-after-init="ifLast($target)"&gt;&lt;/ya-geo-object&gt;
    &lt;/ya-cluster&gt;
&lt;/ya-map&gt;
    </pre>
    <p>javascript:</p>
    <pre class="js" ng-non-bindable>
var _map;
$scope.ifLast = function(last){
    if(!last){
        return;
    }
    _map