BING MAP and GPS location

  • Hi there.

    I'm a big fan of krpano and I use it very often at work.

    I'm trying to create presentations using Bing Maps.

    Therefore, my question is whether there is a possibility for determining the location on the map using GPS location.

    I want the user to see where he currently is located and how far from the localized panoramas.

    Thanks for your help.

  • Sorry but can I ask for an example.

    I don't have an example for that.
    That would be more related to HTML/JS coding than krpano coding.

    Regarding the krpano part - once you have determinate your current GPS location via JS, you can pass the coordinates via the 'vars' embedding settings to krpano:
    https://krpano.com/docu/html/#vars

    e.g.

    Code
    var current_lat = ...;
    var current_lng = ...;
    
    
    embedpano({swf:"krpano.swf", ..., vars:{current_lat:current_lat, current_lng:current_lng}});

    In xml you will have now these current_lat and current_lng variables and can use them for any custom stuff.

    Best regards,
    Klaus

Participate now!

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