problems with google maps plugin.

  • I cannot quite figure this out is seems so simple yet it does not work. I paid for the google maps plugin and downloaded it. I placed the googlemaps.swf at the same level as my pano.xml's. i cannot even paste the example code into an xml and have the pano load I get an error. this is the example code taken right from this website, the only change I made to it was to add my google maps API key. If I remark the code out the pano loads fine again. any ideas why the example code breaks my pano? again this is the sample code from the this website jsut pasting this in the xml breaks it. Need help !

    the error i get is XML parser error: undetermined attribute.

    <plugin name="maps"
    url="googlemaps.swf"
    keep="true"
    handcursor="false"
    align="leftbottom"
    x="10"
    y="10"
    width="300"
    height="300"
    key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    lat="44.959818"
    lng="14.407840"
    zoom="18"
    maptype="SATELLITE"
    dragging="true"
    scrollwheel="true"
    continuouszoom="false"
    keyboard="false"
    crosshairs="false"
    onmapready=""
    onmapmoved=""
    onmapzoomed=""
    >
    <radar visible="true"
    size="100"
    alpha="0.5"
    fillcolor="0xFFFFFF"
    fillalpha="1.0"
    linecolor="0xFFFFFF"
    linealpha="0.0"
    linewidth="0.0"
    glow="true"
    glowcolor="0xFFFFFF"
    glowwidth="4"
    glowstrength="3"
    behindspots="true"
    dragable="true"
    />

    <positioncontrol visible="true"
    anchor="topleft" x="2" y="2"
    />

    <zoomcontrol visible="true"
    anchor="topright" x="2" y="2"
    hasscrolltrack="true"
    />

    <spot name="s1" lat="44.959808" lng="14.407729"
    onhover="showtext(Spot 1);"
    onclick="action(s1);"
    heading="0"
    active="true"
    />
    <spot name="s2" lat="44.959717" lng="14.407840"
    onhover="showtext(Spot 2);"
    onclick="action(s2);"
    heading="90"
    />
    </plugin>

    <action name="s1">
    plugin[maps].activatespot(s1);
    plugin[maps].pantospot(s1);
    loadpano(lobby.xml,null,MERGE,BLEND(1));
    </action>

    <action name="s2">
    plugin[maps].activatespot(s2);
    plugin[maps].pantospot(s2);
    loadpano(superior.xml,null,MERGE,BLEND(1));
    </action>

  • ok i figured this part out. Klause i think there is an error in the example code on your website. See below. I may be wrong but it works for me if i add a /.


    <plugin name="maps"
    url="googlemaps.swf"
    keep="true"
    handcursor="false"
    align="leftbottom"
    x="10"
    y="10"
    width="300"
    height="300"
    key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    lat="44.959818"
    lng="14.407840"
    zoom="18"
    maptype="SATELLITE"
    dragging="true"
    scrollwheel="true"
    continuouszoom="false"
    keyboard="false"
    crosshairs="false"
    onmapready=""
    onmapmoved=""
    onmapzoomed=""
    > <------------------------------------------------- ( should this be /> ) ?
    <radar visible="true"
    size="100"
    alpha="0.5"
    fillcolor="0xFFFFFF"
    fillalpha="1.0"
    linecolor="0xFFFFFF"
    linealpha="0.0"
    linewidth="0.0"
    glow="true"
    glowcolor="0xFFFFFF"
    glowwidth="4"
    glowstrength="3"
    behindspots="true"
    dragable="true"
    />

  • new problem.

    Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///D:/virtualnorthland/website/panos/project1/http://krpano.swf/[[DYNAMIC]]/1 cannot load file:///D:/virtualnorthland/website/panos/plugins/googlemaps.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.

    what does that mean?

    the googlemaps plugin needs internet-access
    and this is not allowed with the default flash security settings for local running flash apps,
    to allow it for local testing see here - https://krpano.com/docu/localaccess/

    online it will work anyway

    best regards,
    Klaus

Participate now!

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