skin_map from vtourskin.xml question

  • I am currently using version 1.19.5

    I have images that are not geo tagged and I wanted to add bing map support with the VTOUR (MULTIRES) droplet.
    Setting the following in vtourskin.xml gets the bing map to display:
    maps="true"
    maps_type="bing"
    maps_bing_api_key="...."

    In the skin_map layer I also set:
    lat="41.525031" lng="-88.081725"



    Map displays fine.

    My question is can I set the lat & lat from someplace outside of the vtourskin.xml file?
    For maintenance purposes I want to have many VTOURS share the same vtourskin.xml file.
    With that said I would need to somehow set the lat & lng outside of the vtourskin.xml file.


    I see that the SCENES in the tour.xml file has lat & lng but when I set those attributes and then
    remove them from the vtourskin.xml file the map does not display.


    Can anyone tell me how I might accomplish this?
    Or have I coded something incorrectly.


    Thanks.


  • The following code ended up working by setting the lat & lng from the tour.xml startup action.


    set(layer[skin_map].lat, 41.525031);
    set(layer[skin_map].lng, -88.081725);

    *smile* The more you play the more you learn.

Jetzt mitmachen!

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