Skip to content

Commit

Permalink
add documentation for unit system options to README
Browse files Browse the repository at this point in the history
  • Loading branch information
brock committed Aug 7, 2015
1 parent bafd4b2 commit 334503a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ viewer.scalebar({
});
`````

To change the Unit system from the defualt of Metric to Imperial, you must reference the `sizeAndTextRenderer` function in the library directly:

`````javascript
viewer.scalebar({
...
sizeAndTextRenderer: OpenSeadragon.ScalebarSizeAndTextRenderer.IMPERIAL_LENGTH,
...
});
`````

The list of all the options can be found and tested on http://nist-isg.github.io/OpenSeadragonScalebar/
If type, pixelsPerMeter or location are not set (or set to 0), the bar is hidden.

Expand Down

0 comments on commit 334503a

Please sign in to comment.