How to configure for use with AWS S3?

  • Directory Structure and Domain

    website

    • index.html (file load panoram)
    • Panorama.js
    • sounds
    • lib
    • graphics


    AWS s3

    • floorplan
    • spots
    • img_*(files img for panorams - tablet,mobile,html5)
    • Panorama.xml
    • Panorama_core.xml
    • Panorama_messages_en.xml
    • Panorama_skin.xml


    init embedpano

    Code
    embedpano({
    					xml:"http://panorama.yaltagc.ru/panorama/1/Panorama.xml"
    					,target:"panoDIV"					,passQueryParameters:true
    					,html5:"only"					,basepath:'http://gcity.burogs.com/panorama/'					,consolelog:true
    					});

    I can not understand how to write the right path to separate the panorama of the library files.

    Edited once, last by maxrip (July 9, 2015 at 3:05 PM).

  • Hi,

    such mixed origins are always a problem.
    For krpano itself the folder structure doesn't matter as long as all paths were set correctly, but the browsers itself might complain about some cases. One very important thing here is to enable CORS on the server.

    Maybe better put the whole tour on the external domain and use a simple iframe...

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!