How to view a viewer in a tablet with tablet layout?
Hello,
I want to test my html viewer in a tablet. I have a window tablet to do this. However I could not see the tablet layout instead everytime i got a desktop layout. I'd like to know if i need to do something so the tablet will display its layout.
0
-
Hi,
you can always "force" the skin to use by using one of these viewer urls;
For desktop :
http://<server>/html5viewer/Index.html?viewerConfigUri=http://<server>/Geocortex/Essentials/REST/sites/<sitename>/viewers/<viewername>/VirtualDirectory/Resources/Config/Default/Desktop.json.js
For tablet :
http://<server>/html5viewer/Index.html?viewerConfigUri=http://<server>/Geocortex/Essentials/REST/sites/<sitename>/viewers/<viewername>/VirtualDirectory/Resources/Config/Default/Tablet.json.js
For handheld :
http://<server>/html5viewer/Index.html?viewerConfigUri=http://<server>/Geocortex/Essentials/REST/sites/<sitename>/viewers/<viewername>/VirtualDirectory/Resources/Config/Default/Handheld.json.js
Regards,
Jan0 -
Thanks.
is there a shorter url for this? For example our current test is this:
http://coacortexdev.coacd.org/WPD/?viewer=floodpro
can we have a similar way to force the tablet or handheld version?0 -
We use the following for the different versions:
http://<server or domain>/Html5Viewer/<index or tablet or handheld>.html?configBase=http://<server>/Geocortex/Essentials/REST/sites/<site>/viewers/<viewer>/virtualdirectory/Resources/Config/Default
GE 4.4.2, GVH 2.5.20 -
You can modify the index.html to force load the different versions using different URLs, just as you did to create that shortened URL. 0 -
Thank you all. I think I need to create a start page with three versions and users can select whichever version fit their browsers. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer