Open XML files that are stored on different locations

  • Lately I've been busy building a map of a local town in my region.
    The panorama's of the road and the street are all rendered together.
    15-20 Other panorama's which are mainly cafeteria or stores have all been rendered seperately.

    What I Want to do
    I want the panorama's that are being rendered seperately to have just one hotspot at the door which must
    open one xml file of the map that corresponds with the geographical location of that panorama.

    Again, these panorama's are rendered seperately and are stored in different maps on the same server.

    Could somebody help me out?

    Thanks.

  • Hi,

    other xml files can be loaded anytime with the loadpano() action:
    https://krpano.com/docu/actions/#loadpano

    If your questions is related to the default VTOUR skin - the skin itself is designed only for loading other scenes - that means when loading an other xml, the IGNOREKEEP flag should be used on the loadpano() call to remove everything from the current skin.

    Best regards,
    Klaus

  • Thanks Klaus, I think this is working.

    However, I do still have a problem.
    http://www.profimage.nl/panos/projecte…ond/YvF8RN.html

    When I click it, it takes me to another panorama, which is what I want. From there on out, whatever hotspot I click, they all try
    to search in the standalone folder for the buildXX.xml code which is not where it is placed.

    Any idea on how to fix this?

    Thanks!

    Edited once, last by spablauw (October 7, 2013 at 4:46 PM).

  • If you navigate 180 degrees horizontally and click on the navigation arrow it will not load http://www.profimage.nl/panos/projecte…map/build12.xml.
    Instead it says that it can't find build12.xml in the strandpaviljoen_bad_egmond folder, which is where we started our journey.

    Note that the url doesn't change to http://www.profimage.nl/panos/projecte…emap/build.html also.
    I get the idea that, because it doesn't locate the SWF file, it tries to operate just from within the single xml file.

    Edited once, last by spablauw (October 7, 2013 at 5:15 PM).

  • Hi,

    see here for the default behavior of the loadpano() action:
    https://krpano.com/docu/actions/#loadpano

    That xml paths there need to be are either absolute paths or relative to the basedir variable (which is %FIRSTXML%) by default. That means all following loadpano() calls will assume an relative path to the first loaded xml by default.

    That mean either use absolute paths, e.g. by using any of url placeholders in the xml:

    Code
    loadpano(%SWFPATH%/pano1.xml, ...);


    or change the basedir variable to an other default value:

    Code
    <krpano ... basedir="%SWFPATH%" ...>

    Best regards,
    Klaus

  • Thanks for your reply.

    I do get an idea about what you're saying but can't really figure it out.

    This is the swf path:

    Code
    http://www.profimage.nl/panos/projecten/interactievemap/build.swf


    This is the xml file:

    Code
    http://www.profimage.nl/panos/projecten/interactievemap/build11.xml


    This is my the current location:

    Code
    http://www.profimage.nl/panos/projecten/ondernemend_egmond/standalone/strandpaviljoen_bad_egmond/YvF8RN.html

    Now how do I construct the code?

    Thanks.

  • Hi Klaus,

    Thanks for your respone!

    I changed the basedir to

    Code
    basedir="%../../../interactievemap/build.swf%"


    It results in a fatal error though.

    Beneath is the other code. Please tell me if you spot any blunder.

Participate now!

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