Moving the Map?

kingsushi001
Hi everyone

I'm new to Quest and the forum, so not really sure where this should go.

So I've been messing around with changing a few things in the UI, and I'd
like to move the map to the upper right hand corner, now I've successfully
achieved this, only problem is that the map isn't centered in the div, it's
kind of off to the right.

If any one can have a look at my attached example and help me out, it would
be greatly appreciated.

When running the example, click in the map and drag it to the left.

jaynabonne
Add this line to the end of your "panels" function:

paper.view.viewSize.width = 216;


That will set the view width to 216, and it will then calculate the center correctly when positioning the player.

kingsushi001
Worked like a charm!

Thank you very much jaynabonne.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums