Is it possible to not use XML files?

  • I'm working on a very specific use case for a single pano (at this stage, more panos down the track) and in this use case the XML files are being blocked from loading. I'm wondering if it is possible to put all the XML data (which is pretty minimal) directly into the main HTML file?

  • Hi,

    yes, and by using the loadpanoimage() action:
    https://krpano.com/docu/actions/#loadpanoimage

    it's even possible to avoid any xml-file or xml-string usage.

    Here an example for loading a multires flat-pano:

    Code
    krpano.image.reset();
    krpano.image.flat = {
      url : "tile_%l_%v_%h.jpg",
      multires : "512,1024x512,2048x1024,4096x2048"
    };
    krpano.actions.loadpanoimage('MERGE','BLEND(0.5)',function()
    {
      console.log('load call done');
    });

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!