With Panotour Pro 1.8 I was able to add a KrPano plugin myself. One of them was the compass plugin, but with that I mean the plugin that gets the device compass and not the one showing a fancy compass on the screen.
However with Panotour Pro 2.0 I have some issues to get it working. What I did was this:
- Download KrPano
- Get the compass.js plugin
- Edit my panotour pro skin.xml and added: <plugin name="compass" devices="html5" url="graphics/compass.js" onavailability="copy(view.hlookat, heading);" onchange="copy(view.hlookat, heading);" />
- Added the compass.js in the directory: panotour data > graphics
In panotour pro 1.8 I added this xml in the panotour_data.xml file, and that worked fine. However the Panotour Pro 2.0 described me that I had to add it into the skin.xml file. However when I test it, it doesn't get the device compass heading.
My question is. How can I get the device compass to work with the Panotour Pro 2.0? To be fair, I was a bit disappointed when I saw this plugin wasn't added by default in Panotour Pro 2.0. I've written a code injector program to add plugins into my pano's that aren't available trough the Panotour Pro interface. One plus side on this is, I never have to add them by hand trough the Panotour interface, I just drag and drop my xml on the program and everything goes by itself
But I hope someone can help me, because I need to update the code injector to work with the new Panotour Pro 2.0. All I need to know, is how to get this plugin working correctly.