Loading ...
Sorry, an error occurred while loading the content.

InfoWindow Google Maps

Expand Messages
  • sgsmith560@hotmail.com
    Hello All Please can anyone direct as to what code I should use to allow a flash panorama to be incorporated into the InfoWindow of Google maps. Just cant seem
    Message 1 of 2 , Oct 1, 2008
    • 0 Attachment
      Hello All

      Please can anyone direct as to what code I should use to allow a flash panorama to be incorporated into the InfoWindow of Google maps.

      Just cant seem to fins out how to do it. Making me crazy man!

      Regards,

      Stephan

      [Non-text portions of this message have been removed]
    • Vincent Ogloblinsky
      Stephan, may be this code will help you: var point = new GLatLng(48.3831,-2.91983); //We create a point for our marker var marker = new GMarker(point); // we
      Message 2 of 2 , Oct 2, 2008
      • 0 Attachment
        Stephan, may be this code will help you:

        var point = new GLatLng(48.3831,-2.91983); //We create a point for our
        marker
        var marker = new GMarker(point); // we create the marker
        map.addOverlay(marker); // we add the marker on the map


        var bloc ="<div style='width: 500px;height: 400px;'>"; // We will insert
        our panorama with a object tab in a div.

        var
        sw='"http://www.360ouest.com/resources/global/pano.swf?xml_file=http://w\
        ww.360ouest.com/pano-ext.php?id=277"';
        var obj='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        '+

        'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfla\
        sh.cab#version=9,0,0,0" '+
        'width="100%" height="100%">'+
        '<param name="movie" value='+sw+'>'+
        '<param name="quality" value="high">'+
        '<param name="menu" value="true">'+
        '<param name="allowFullScreen" value="true">'+
        '<param name="allowScriptAccess" value="always">'+
        '<embed src='+sw+'
        pluginspage="http://www.macromedia.com/go/getflashplayer" '+
        'type="application/x-shockwave-flash" '+
        'quality="high" menu="true" allowFullScreen="true"
        allowScriptAccess="always" '+
        'width="100%" height="100%">'+
        '</embed></object>';

        bloc += obj;
        bloc += "</div>";


        marker.bloc = bloc; // we specifie this code to our marker

        GEvent.addListener(marker, "click", function() {
        map.savePosition();
        marker.openInfoWindowHtml(marker.bloc); //we create an event for
        the openinfo with our bloc code
        });

        GEvent.addListener(marker, "infowindowclose", function() {
        map.returnToSavedPosition();
        });

        }

        Check this code on this test page:
        http://www.360ouest.com/google-map/test_map_flash_fonction_maximise.html
        <http://www.360ouest.com/google-map/test_map_flash_fonction_maximise.htm\
        l>

        And the source too

        Regards

        Vincent

        --- In PanoToolsNG@yahoogroups.com, <sgsmith560@...> wrote:
        >
        > Hello All
        >
        > Please can anyone direct as to what code I should use to allow a flash
        panorama to be incorporated into the InfoWindow of Google maps.
        >
        > Just cant seem to fins out how to do it. Making me crazy man!
        >
        > Regards,
        >
        > Stephan
        >
        > [Non-text portions of this message have been removed]
        >



        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.