Skip to content

Commit

Permalink
Merge pull request #3 from brock/document-unit-system-options
Browse files Browse the repository at this point in the history
add documentation for unit system options to README
  • Loading branch information
avandecreme committed Aug 27, 2015
2 parents bafd4b2 + 334503a commit f5f88c3
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 f5f88c3

Please sign in to comment.