Krpano in Google Earth

  • 360cities have managed to do it, and now have their own layer on Google Earth as well. I have not managed to find any information about how this was done, but would be really interested to know.

  • Peminto's runs within his own site, I have seen that before, we even managed it about a year back for a while on an older plugin with Google maps, but it proved unstable then. Hopefully the newer version will work better. This is not the same as having a layer within Google Earth itself, using kmz files to locate the pins and somehow open up the Krpano viewer.

    anyone any ideas about that?

  • 1) Create kmz with pins
    2) Give placemark logical names

    3) Give your hotspots in krpano the same name
    4) Use javascript to register an onclick event on placemarkers
    5) get the name of tbe onclick placemarker, use that name to get the hotspot onclick action
    6) execute that onclick

    This is based on a view with 2 divs, 1 with GE and 1 with krpano. If you want 1 view with GE, you can use stuff like lightbox/fancybox/thickbox etc to open a popup. You can use the placemarkers name to generate a string with the url to the xml.

    So instead of

    Code
    var kr_onclick = krpanoObj.get('hotspot['+name+'].onclick');
    krpanoObj.call(kr_onclick);

    you could have

    Code
    xmlstr = 'pano/'+name+".xml"; 
    openpopupscript('index.html?pano='+xmlstr+'&')

    Hope that helped

Participate now!

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