# HG changeset patch # User robcast # Date 1422355567 -3600 # Node ID 08296a1ef2d560ce6d28068c5b76c784895d1998 # Parent 1e94680cbc517c5a1863d3cc06a426ccc1d4a6ae fixed typo. diff -r 1e94680cbc51 -r 08296a1ef2d5 webapp/src/main/webapp/jquery/jquery.digilib.annotator.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Tue Jan 27 11:45:37 2015 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Tue Jan 27 11:46:07 2015 +0100 @@ -278,24 +278,24 @@ pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'point', 'geometry': pos}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'Rectangle') { pos = geom.position(newshape.geometry.coordinates[0]); var pt2 = geom.position(newshape.geometry.coordinates[1]); var rect = geom.rectangle(pos, pt2); // create annotation shape annoShape = {'type': 'rectangle', 'geometry': rect}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'Polygon') { pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'polygon', 'geometry': {'coordinates': newshape.geometry.coordinates}}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'LineString') { pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'linestring', 'geometry': {'coordinates': newshape.geometry.coordinates}}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else { console.error("Unsupported annotation shape="+type); return; @@ -399,7 +399,7 @@ }, 'properties' : { 'stroke' : 'yellow', - 'cssclass' : cssPrefix+'svg-annotationregion annotator-hl', + 'cssclass' : cssPrefix+'svg-annotation annotator-hl', 'style' : 'pointer-events:all' }, 'annotation': annotation