added code to allow ng-repeat with polygons
minified updated code