picturae / openseadragonselection

An OpenSeadragon selection plugin for the tiled viewer.
Apache License 2.0
50 stars 24 forks source link

help #13

Closed IanJohan closed 8 years ago

IanJohan commented 8 years ago

sorry, coming again. i still couldn't make it... the thing is, i've already got a view in my project, and it goes well in basic functions. then i add openseadragonselection.js to my html, and set selection.enable()(not sure if that's right). PLZ tell me what should i do next... For now i don't need to show the RGB & ZoomLevels beside the viewer like the demo does.

MindFreeze commented 8 years ago

The very least you need to do is: once you have the `viewer´ object, call ´viewer.selection()´. You can pass an options object to that, which can contain a function to be called when a selection is made. Again, please check out the code on the demo page.

IanJohan commented 8 years ago

thx sooo much!!!! it's initiated now. new problem is that i couldn't drag to adjust the size of the selected area... just a tiny fixed area...