HTML:
<ya-map ya-zoom="10" ya-center="[37.75,55.73]"> <ya-geo-object ya-source="geoObjects[0]" ya-options="{editorDrawingCursor: 'crosshair',editorMaxPoints: 5,fillColor: '#00FF00',strokeColor: '#0000FF',strokeWidth: 5}" ya-draw></ya-geo-object> </ya-map>
javascript:
$scope.geoObjects=[ { geometry: { type: 'Polygon', coordinates: [] } } ];