Moving the Map?
kingsushi001
01 May 2015, 20:49Hi 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.
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
02 May 2015, 10:00Add this line to the end of your "panels" function:
That will set the view width to 216, and it will then calculate the center correctly when positioning the player.
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
02 May 2015, 10:46Worked like a charm!
Thank you very much jaynabonne.
Thank you very much jaynabonne.