Skip to content

angular annotorious not working with turn js #8

Description

@sathish-optisol

view code for turn js
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"></div>

view code for turn js with annotorious
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"><img class="aaaaaaaa_{{$index}}" id="aaaaaaaa_{{$index}}" style="" src="{{constant.bookImageUrlMed}}{{page.page_image}}"/></div>

Controller
```
for(var i=0;i<$scope.pagesData.length;i++){
var photo = angular.element(document).find(".aaaaaaaa_"+i)[0];
annotoriousService.makeAnnotatable(photo);
annotoriousService.setProperties({
outline: '#00f',
stroke: '#ff0000',
fill: 'rgba(255, 0, 0, 0.3)',
'hi_stroke': '#00ff00',
'hi_fill': 'rgba(0, 255, 0, 0.3)'
});
)


but it only works for 1st page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions