• Two issues, many solutions tried.

    ISSUE ONE:
    When making a vtour, the map appears when the map button is clicked, but, despite the zoom="##" parameter, is always zoomed in to the max. What am I missing to have a zoom level of around 17? I've even tried adding zoom="" to the each pano scene.

    This is my vtour xml for the map layer:

    <layer name="skin_map"
    state="hidden"
    url=""
    flash_url="%SWFPATH%/plugins/bingmaps.swf"
    html5_url="%SWFPATH%/plugins/bingmaps.js"
    visible="true"
    align="lefttop"
    width="100%"
    height="100%"
    x="0" y="0"
    zorder="1"
    lat="0"
    lng="0"
    scale="1"
    zoom="10"
    bgalpha="0"
    maptype="satellite"
    onmapready="skin_addmapspots();"
    >
    <radar visible="true" />
    <zoomcontrol visible="true"
    align="righttop"
    x="38" y="145"
    hasscrolltrack="true"
    />
    <maptypecontrol visible="true"
    align="righttop" x="15" y="5"
    buttonalign="v"
    buttontexts="Map|Satellite|Hybrid"
    scale="1.0"
    />
    <positioncontrol visible="true"
    align="righttop"
    x="18" y="75"
    />
    <spotstyle name="DEFAULT"
    url="vtourskin_mapspot.png"
    activeurl="vtourskin_mapspotactive.png"
    edge="bottom"
    x="-5" y="-8"
    scale="0.5"
    />
    <layer name="skin_map_androidzoom_in"
    url="vtourskin.png"
    effect="glow(0,0.5);"
    crop="9|512|46|64"
    align="right"
    x="0" y="-40"
    zorder="2"
    ondown="layer[skin_map].zoomin();
    skin_buttonglow(get(name));"
    onup="skin_buttonglow(null);"
    devices="Android+Tablet+Flash"
    />
    <layer name="skin_map_androidzoom_out"
    url="vtourskin.png"
    effect="glow(0,0.5);"
    crop="73|512|46|64"
    align="right"
    x="0" y="+40"
    zorder="2"
    ondown="layer[skin_map].zoomout();
    skin_buttonglow(get(name));"
    onup="skin_buttonglow(null);"
    devices="Android+Tablet+Flash"
    />
    </layer>
    ISSUE TWO:
    The radar doesn't appear until the user interacts with the map layer itself? Do I have the code in the wrong place?

    Thx!

  • Hi,

    What am I missing to have a zoom level of around 17?

    The map location and zoom will be automatically determined in the 'skin_addmapspots' <action> in the vtourskin.xml by the zoomToSpotsExtent() call there. Just remove that call to use the zoom/lat/lng that were defined the map declaration.


    ISSUE TWO:
    The radar doesn't appear until the user interacts with the map layer itself? Do I have the code in the wrong place?

    sorry, here I have no idea, in my tests the radar appears correctly... do you have a link?

    best regards,
    Klaus

Jetzt mitmachen!

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